aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrub <rub@piwigo.org>2007-01-02 22:55:57 +0000
committerrub <rub@piwigo.org>2007-01-02 22:55:57 +0000
commit4c360b36821fcaf56a58b4f1b235ec2ac6826c05 (patch)
tree081f489ed70e301e71d942289dcd25743d8b6cda
parent3169b81c762579fd78756a2b99f2e2a273d2e215 (diff)
Issue ID 0000529 Re-Fixed.
$_SERVER["SCRIPT_FILENAME"] not treated (only $_SERVER['SCRIPT_FILENAME'] was treated) git-svn-id: http://piwigo.org/svn/branches/branch-1_6@1691 68402e56-0260-453c-a942-63ccdbb3a9ee
-rw-r--r--include/common.inc.php3
1 files changed, 1 insertions, 2 deletions
diff --git a/include/common.inc.php b/include/common.inc.php
index e35990516..0de361270 100644
--- a/include/common.inc.php
+++ b/include/common.inc.php
@@ -162,8 +162,7 @@ if ($conf['gallery_locked'])
{
$header_msgs[] = $lang['gallery_locked_message'];
- if ( basename($_SERVER["SCRIPT_FILENAME"]) != 'identification.php'
- and !is_admin() )
+ if ( script_basename() != 'identification' and !is_admin() )
{
//next line required if PATH_INFO (no ? in url) but won't work for scripts outside PWG
$page['root_path'] = cookie_path();