mirror of
https://github.com/Piwigo/Piwigo.git
synced 2025-04-26 19:29:58 +03:00
fixes #476, in case of guest_access=false, redirect_http instead of redirect_html
This commit is contained in:
parent
bf81ba0315
commit
db0e02b5d4
1 changed files with 6 additions and 2 deletions
|
@ -273,7 +273,7 @@ function tag_alpha_compare($a, $b)
|
|||
*/
|
||||
function access_denied()
|
||||
{
|
||||
global $user;
|
||||
global $user, $conf;
|
||||
|
||||
$login_url =
|
||||
get_root_url().'identification.php?redirect='
|
||||
|
@ -289,6 +289,10 @@ function access_denied()
|
|||
echo str_repeat( ' ', 512); //IE6 doesn't error output if below a size
|
||||
exit();
|
||||
}
|
||||
elseif (!$conf['guest_access'] and is_a_guest())
|
||||
{
|
||||
redirect_http($login_url);
|
||||
}
|
||||
else
|
||||
{
|
||||
redirect_html($login_url);
|
||||
|
@ -648,4 +652,4 @@ function flush_page_messages()
|
|||
}
|
||||
}
|
||||
|
||||
?>
|
||||
?>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue