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
This commit is contained in:
parent
3169b81c76
commit
4c360b3682
1 changed files with 1 additions and 2 deletions
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue