converted path constants to $GLOBALS.

This commit is contained in:
Taylor Otwell
2012-01-27 16:17:43 -06:00
parent 09d4b74cf1
commit f44c565ee4
28 changed files with 80 additions and 83 deletions

View File

@@ -1,5 +1,16 @@
<?php
/**
* Get one of the global paths.
*
* @param string $path
* @return string
*/
function path($path)
{
return $GLOBALS[strtoupper($path).'_PATH'];
}
/**
* Convert HTML characters to entities.
*
@@ -268,7 +279,7 @@ function head($array)
* @param bool $https
* @return string
*/
function path($url = '', $https = false)
function url($url = '', $https = false)
{
return Laravel\URL::to($url, $https);
}