[FIX] removed obsolete code

This commit is contained in:
David Drapeau 2021-03-19 14:50:20 +01:00
parent 783c241e08
commit df2004bf4b

View File

@ -31,7 +31,6 @@ require_once './modules/InterfaceTranslation.php';
require_once './modules/InterfaceEmail.php'; require_once './modules/InterfaceEmail.php';
require_once './modules/ClassConfig.php'; require_once './modules/ClassConfig.php';
require_once './modules/ClassContent.php';
require_once './modules/ClassTranslation.php'; require_once './modules/ClassTranslation.php';
require_once './modules/ClassController.php'; require_once './modules/ClassController.php';
require_once './modules/ClassLang.php'; require_once './modules/ClassLang.php';
@ -44,7 +43,6 @@ require_once './modules/ClassEmail.php';
require_once './modules/ClassForm.php'; require_once './modules/ClassForm.php';
$oConf = new ClassConfig(); $oConf = new ClassConfig();
$oContent = new ClassContent();
$oTrans = new ClassTranslation(); $oTrans = new ClassTranslation();
$oController = new ClassController($_REQUEST); $oController = new ClassController($_REQUEST);
$oLang = new ClassLang(); $oLang = new ClassLang();
@ -97,9 +95,6 @@ if (!isset($_SESSION['config'])) {
$_SESSION['activeLanguages'] = $oLang->listActiveLanguages(); $_SESSION['activeLanguages'] = $oLang->listActiveLanguages();
} }
if(!isset($_SESSION['content'])){
$_SESSION['content'] = $oContent->listContent($_SESSION['config']['default_lang_code']);
}
if(!isset($_SESSION['translations'])){ if(!isset($_SESSION['translations'])){
$_SESSION['translations'] = $oTrans->listTranslations('fr_fr'); $_SESSION['translations'] = $oTrans->listTranslations('fr_fr');
} }