diff options
author | Bill Marquette <billm@pfsense.org> | 2005-09-17 05:32:30 +0000 |
---|---|---|
committer | Bill Marquette <billm@pfsense.org> | 2005-09-17 05:32:30 +0000 |
commit | 7dd44f7d768fd3e388f538a18d18d0699f101eb9 (patch) | |
tree | 07ba6356aafd14822206c5dc76ed7831c711093c /usr/local/www/head.inc | |
parent | 063f8745f9c47f2f230b6a62b698cece555b752e (diff) | |
download | pfsense-7dd44f7d768fd3e388f538a18d18d0699f101eb9.zip pfsense-7dd44f7d768fd3e388f538a18d18d0699f101eb9.tar.gz |
SCRIPT_FILENAME works better under lighty than PHP_SELF
SCRIPT_FILENAME works in both lighty and mini, so move to using that var
Diffstat (limited to 'usr/local/www/head.inc')
-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)) { |