Désactiver la redirection du routage en cas de 403 ou de 404
This commit is contained in:
parent
4ed8198321
commit
cfc6a185aa
@ -885,14 +885,14 @@ class core extends common
|
||||
}
|
||||
if ($access === false) {
|
||||
// Bascule sur le site d'accueil
|
||||
if (
|
||||
/*if (
|
||||
isset($_SESSION['ZWII_SITE_CONTENT'])
|
||||
&& $_SESSION['ZWII_SITE_CONTENT'] !== 'home'
|
||||
) {
|
||||
$_SESSION['ZWII_SITE_CONTENT'] = 'home';
|
||||
header('Location:' . helper::baseUrl() . $this->getUrl());
|
||||
exit();
|
||||
}
|
||||
}*/
|
||||
http_response_code(403);
|
||||
if ($accessInfo['userName']) {
|
||||
$this->addOutput([
|
||||
@ -915,15 +915,14 @@ class core extends common
|
||||
}
|
||||
} elseif ($this->output['content'] === '') {
|
||||
// Bascule sur le site d'accueil pour afficher la page d'erreur
|
||||
|
||||
if (
|
||||
/*if (
|
||||
isset($_SESSION['ZWII_SITE_CONTENT'])
|
||||
&& $_SESSION['ZWII_SITE_CONTENT'] !== 'home'
|
||||
) {
|
||||
$_SESSION['ZWII_SITE_CONTENT'] = 'home';
|
||||
header('Location:' . helper::baseUrl() . $this->getUrl());
|
||||
exit();
|
||||
}
|
||||
}*/
|
||||
http_response_code(404);
|
||||
if (
|
||||
$this->getData(['config', 'page404']) !== 'none'
|
||||
|
Loading…
Reference in New Issue
Block a user