diff options
-rwxr-xr-x | usr/local/www/head.inc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr/local/www/head.inc b/usr/local/www/head.inc index 37410e9..5470ebc 100755 --- a/usr/local/www/head.inc +++ b/usr/local/www/head.inc @@ -27,7 +27,7 @@ else * Coded by: Erik Kristensen */ - $dir = trim(basename($_SERVER["PHP_SELF"]), '.php'); + $dir = trim(basename($_SERVER["SCRIPT_FILENAME"]), '.php'); $path = "/usr/local/www/javascript/" . $dir . "/"; if (is_dir($path)) { if ($dh = opendir($path)) { |