converted path constants to $GLOBALS.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user