diff --git a/core/class/router.class.php b/core/class/router.class.php index 8fa13e1..42d1723 100644 --- a/core/class/router.class.php +++ b/core/class/router.class.php @@ -514,7 +514,7 @@ class core extends common is_array($pagesId['page']) && array_key_exists($this->getUrl(0), $pagesId['page']) ) { - $_SESSION['ZWII_COURSE'] = $key; + $_SESSION['ZWII_SITE_CONTENT'] = $key; header('Refresh:0; url=' . helper::baseUrl() . $this->getUrl(0)); exit(); } diff --git a/core/class/template.class.php b/core/class/template.class.php index 1cfb6cb..c485d64 100644 --- a/core/class/template.class.php +++ b/core/class/template.class.php @@ -494,8 +494,8 @@ class template $lang = $langId; break; case 'selected': - if (isset($_SESSION['ZWII_COURSE'])) { - $lang = $_SESSION['ZWII_COURSE']; + if (isset($_SESSION['ZWII_SITE_CONTENT'])) { + $lang = $_SESSION['ZWII_SITE_CONTENT']; } } return 'input['_SESSION'] = $_SESSION; // Déterminer le contenu du site - if (isset($_SESSION['ZWII_COURSE'])) { + if (isset($_SESSION['ZWII_SITE_CONTENT'])) { // Déterminé par la session présente - self::$siteContent = $_SESSION['ZWII_COURSE']; + self::$siteContent = $_SESSION['ZWII_SITE_CONTENT']; } // Instanciation de la classe des entrées / sorties // Les fichiers de configuration diff --git a/core/module/course/course.php b/core/module/course/course.php index a221402..f2f953e 100644 --- a/core/module/course/course.php +++ b/core/module/course/course.php @@ -219,7 +219,7 @@ class course extends common $this->getData(['course', $courseId])) ) { // Stocker la sélection - $_SESSION['ZWII_COURSE'] = $courseId; + $_SESSION['ZWII_SITE_CONTENT'] = $courseId; } // Valeurs en sortie diff --git a/core/module/install/install.php b/core/module/install/install.php index df65974..43c8f94 100644 --- a/core/module/install/install.php +++ b/core/module/install/install.php @@ -121,9 +121,9 @@ class install extends common self::$i18nUI = array_key_exists(self::$i18nUI, self::$languages) ? self::$i18nUI : 'fr_FR'; // Création du dossier de cours avec le marqueur de langue par défaut - if (!is_dir(self::DATA_DIR . $_SESSION['ZWII_COURSE'])) { - mkdir(self::DATA_DIR . $_SESSION['ZWII_COURSE']); - touch(self::DATA_DIR . $_SESSION['ZWII_COURSE'] . '/.default'); + if (!is_dir(self::DATA_DIR . $_SESSION['ZWII_SITE_CONTENT'])) { + mkdir(self::DATA_DIR . $_SESSION['ZWII_SITE_CONTENT']); + touch(self::DATA_DIR . $_SESSION['ZWII_SITE_CONTENT'] . '/.default'); } // Création de l'utilisateur si les données sont complétées. // success retour de l'enregistrement des données @@ -139,7 +139,7 @@ class install extends common 'signature' => 1, 'mail' => $userMail, 'password' => $this->getInput('installPassword', helper::FILTER_PASSWORD, true), - 'language' => $_SESSION['ZWII_COURSE'] + 'language' => $_SESSION['ZWII_SITE_CONTENT'] ] ]);