[fix] fixing variables management

This commit is contained in:
Benjamin Sonntag 2015-01-04 22:25:21 +01:00
parent e2e2db674e
commit 476ed5e3af
1 changed files with 6 additions and 1 deletions

View File

@ -70,7 +70,12 @@ closedir($c);
/* Language */
//include_once("../../class/lang_env.php");
$variables=new m_variables();
// Adaptation to BOTH version of the variables managed by AlternC 1/3/4
if (is_file($root."/class/variables.php")) {
require_once($root."/class/variables.php");
} else {
$variables=new m_variables();
}
$mem=new m_mem();
$err=new m_err();
$authip=new m_authip();