aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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 d97a44b07..07d73ee6c 100644
--- a/include/common.inc.php
+++ b/include/common.inc.php
@@ -165,8 +165,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();