summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xusr/local/www/head.inc2
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)) {
OpenPOWER on IntegriCloud