diff --git a/core/core.php b/core/core.php index 2d8b1d37..fd4aa384 100644 --- a/core/core.php +++ b/core/core.php @@ -2705,8 +2705,6 @@ class core extends common { } // Check l'accès à la page $access = null; - $accessInfo['userName'] = ''; - $accessInfo['pageId'] = ''; if($this->getData(['page', $this->getUrl(0)]) !== null) { if( $this->getData(['page', $this->getUrl(0), 'group']) === self::GROUP_VISITOR @@ -2746,6 +2744,8 @@ class core extends common { * - Une partie de l'URL fait partie de la liste de filtrage (édition d'un module etc..) * - L'édition est ouverte depuis un temps dépassé, on considère que la page est restée ouverte et qu'elle ne sera pas validée */ + $accessInfo['userName'] = ''; + $accessInfo['pageId'] = ''; foreach($this->getData(['user']) as $userId => $userIds){ $t = explode('/',$this->getData(['user', $userId, 'accessUrl'])); if ( $this->getUser('id') && diff --git a/core/include/update.inc.php b/core/include/update.inc.php index ac8171bc..88dba1db 100644 --- a/core/include/update.inc.php +++ b/core/include/update.inc.php @@ -714,7 +714,7 @@ if ($this->getData(['core', 'dataVersion']) < 11200) { // Option de dévoilement du mdp $this->setData(['config', 'connect', 'showPassword', true]); - + // Mise à jour $this->setData(['core', 'dataVersion', 11200]); } @@ -722,7 +722,7 @@ if ($this->getData(['core', 'dataVersion']) < 11200) { // Version 11.2.02 if ($this->getData(['core', 'dataVersion']) < 11202) { - // Renommer les champs + // Renommer les champs $this->setData(['locale', 'cookies', 'mainLabel', $this->getData(['locale', 'cookies', 'cookiesZwiiText']) ]); $this->setData(['locale', 'cookies', 'gaLabel', $this->getData(['locale', 'cookies', 'cookiesGaText']) ]); $this->setData(['locale', 'cookies', 'titleLabel', $this->getData(['locale', 'cookies', 'cookiesTitleText']) ]); @@ -833,7 +833,7 @@ if ($this->getData(['core', 'dataVersion']) < 11300) { $this->setData(['theme', 'title', 'font', $fonts[ $this->getData (['theme', 'title', 'font' ]) ] ]); $this->setData(['admin', 'fontTitle', $fonts[ $this->getData (['admin', 'fontTitle' ]) ] ]); $this->setData(['admin', 'fontText', $fonts[$this->getData (['admin','fontText' ]) ] ]); - + unlink(self::DATA_DIR . 'admin.css'); unlink(self::DATA_DIR . 'theme.css'); @@ -844,9 +844,11 @@ if ($this->getData(['core', 'dataVersion']) < 11300) { // Version 12.0.00 if ($this->getData(['core', 'dataVersion']) < 12000) { - // Effacer le dossier - $this->removeDir('core/module/addon'); + // Effacer le dossier + if (is_dir('core/module/addon') ) { + $this->removeDir('core/module/addon'); + } // Mise à jour $this->setData(['core', 'dataVersion', 12000]); -} +}