Search 2.1 config vide

This commit is contained in:
Fred Tempez 2021-05-14 17:52:07 +02:00
parent ffe62bbbf9
commit 27c91356fb

View File

@ -19,7 +19,7 @@
class search extends common {
const VERSION = '2.0';
const VERSION = '2.1';
const REALNAME = 'Recherche';
const DELETE = true;
const UPDATE = '0.0';
@ -104,6 +104,8 @@ class search extends common {
// Données de thème
$this->setData(['module', $this->getUrl(0), 'theme',init::$defaultTheme ]);
$this->setData(['module', $this->getUrl(0), 'theme', 'style', self::DATADIRECTORY . 'pages/' . $this->getUrl(0) . '/theme.css' ]);
// Recharger la page pour éviter une config vide
header("Refresh:0");
}
// Dossier de l'instance
@ -120,6 +122,7 @@ class search extends common {
// Stocker le nom de la feuille de style
$this->setData(['module', $this->getUrl(0) , 'theme', 'style', $fileCSS]);
}
}