diff --git a/app/libraries/utils.php b/app/libraries/utils.php index e636682a9843..88d87cd4650b 100755 --- a/app/libraries/utils.php +++ b/app/libraries/utils.php @@ -2,6 +2,10 @@ class Utils { + public static function basePath() { + return substr($_SERVER['SCRIPT_NAME'], 0, strrpos($_SERVER['SCRIPT_NAME'], '/') + 1); + } + public static function fatalError($message = false, $exception = false) { if (!$message) diff --git a/app/routes.php b/app/routes.php index e5dd5c296fc1..a55f6907c064 100755 --- a/app/routes.php +++ b/app/routes.php @@ -164,7 +164,9 @@ HTML::macro('image_data', function($imagePath) { HTML::macro('breadcrumbs', function() { $str = '