You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Message d'erreur affichage lorsqu'on essaye d’accéder à une page statique non active
Solution (fichier: core/lib/class.plx.motor.php)
Remplacer dans plxMotor la partie qui traite les pages statiques dans prechauffage() par le code suivant:
elseif($this->get AND preg_match('/^static([0-9]+)\/?([a-z0-9-]+)?/',$this->get,$capture)) {
$this->cible = str_pad($capture[1],3,'0',STR_PAD_LEFT); # On complété sur 3 caractères
if(!isset($this->aStats[$this->cible]) OR !$this->aStats[$this->cible]['active']) {
$this->error404(L_UNKNOWN_STATIC);
} else {
if(!empty($this->aConf['homestatic']) AND $capture[1]){
if($this->aConf['homestatic']==$this->cible){
header('Status: 301 Moved Permanently', false, 301);
header('Location: '.$this->urlRewrite());
exit();
}
}
if($this->aStats[$this->cible]['url']==$capture[2]) {
$this->mode = 'static'; # Mode static
$this->template = $this->aStats[$this->cible]['template'];
} else {
header('Status: 301 Moved Permanently', false, 301);
header('Location: '.$this->urlRewrite('?static'.intval($this->cible).'/'.$this->aStats[$this->cible]['url']));
exit();
}
}
}
The text was updated successfully, but these errors were encountered:
Message d'erreur affichage lorsqu'on essaye d’accéder à une page statique non active
Solution (fichier: core/lib/class.plx.motor.php)
Remplacer dans plxMotor la partie qui traite les pages statiques dans prechauffage() par le code suivant:
The text was updated successfully, but these errors were encountered: