Bugfixed resolution of app dir

This commit is contained in:
Chris 2017-02-12 16:40:53 +01:00
parent fe5ac914d9
commit 19936378fc
1 changed files with 1 additions and 0 deletions

View File

@ -17,6 +17,7 @@ if (!($script = dirname(@readlink($_SERVER['SCRIPT_NAME']))))
$script = dirname($_SERVER['SCRIPT_NAME']);
if (basename($script)=='bin')
$script = dirname($script);
$script = realpath($script);
define("APP_ROOT", $script);