From: hickert Date: Tue, 25 Nov 2008 07:12:34 +0000 (+0000) Subject: Updated config checks X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=4d5e9da0628f2bd5e124fffb4a7c9c492d5ae905;p=gosa.git Updated config checks -Check for the "configVersion" attribute in the gosa.conf file, to ensure that we have a valid 2.6 config file and not using an old 2.5 config file.. git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@13020 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-core/include/class_config.inc b/gosa-core/include/class_config.inc index e52e1d235..e07cb6e53 100644 --- a/gosa-core/include/class_config.inc +++ b/gosa-core/include/class_config.inc @@ -43,7 +43,7 @@ class config { 'MAIN' => array(), 'MENU' => array(), 'SERVICE' => array()); var $basedir= ""; - var $config_version =""; + var $config_version ="NOT SET"; /* Keep a copy of the current deparment list */ var $departments= array(); @@ -975,7 +975,7 @@ class config { /* Check contributed config version and current config version. */ - if($this->config_version != $current && !empty($this->config_version)){ + if(($this->config_version == "NOT SET") || ($this->config_version != $current && !empty($this->config_version))){ msg_dialog::display(_("Configuration"),_("The configuration file you are using seems to be outdated. Please move the GOsa configuration file away to run the GOsa setup again.")); } }