From: hickert Date: Thu, 27 May 2010 15:06:29 +0000 (+0000) Subject: Updated class core and schema check method X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=dd847b7ce1aec1d291100928e38b11fc3af710ef;p=gosa.git Updated class core and schema check method git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@18778 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-core/include/class_configRegistry.inc b/gosa-core/include/class_configRegistry.inc index 048af50c7..2b593f0df 100644 --- a/gosa-core/include/class_configRegistry.inc +++ b/gosa-core/include/class_configRegistry.inc @@ -114,7 +114,7 @@ class configRegistry{ if(isset($requirements['ldapSchema'])){ foreach($requirements['ldapSchema'] as $oc => $version){ if(!$this->ocAvailable($oc)){ - $this->detectedSchemaIssues['missing'][] = $oc; + $this->detectedSchemaIssues['missing'][$oc] = $oc; $this->schemaCheckFailed = TRUE; $failure = TRUE; }elseif(!empty($version)){ @@ -123,7 +123,7 @@ class configRegistry{ if($currentVersion == -1){ $currentVersion = _("unknown"); } - $this->detectedSchemaIssues['versionMismatch'][] = + $this->detectedSchemaIssues['versionMismatch'][$oc] = sprintf(_("%s has version %s but %s is required!"), bold($oc),bold($currentVersion),bold($version)); $this->schemaCheckFailed = TRUE; $failure = TRUE; @@ -159,14 +159,14 @@ class configRegistry{ $message.= "
". _("The following object classes are missing:"). "
". - msgPool::buildList($this->detectedSchemaIssues['missing']). + msgPool::buildList(array_values($this->detectedSchemaIssues['missing'])). "
"; } if(count($this->detectedSchemaIssues['versionMismatch'])){ $message.= "
". _("The following object classes are outdated:"). "
". - msgPool::buildList($this->detectedSchemaIssues['versionMismatch']). + msgPool::buildList(array_values($this->detectedSchemaIssues['versionMismatch'])). "
"; } if($message != ""){ diff --git a/gosa-core/include/class_core.inc b/gosa-core/include/class_core.inc index 2b7c5a6b2..50c294d2d 100644 --- a/gosa-core/include/class_core.inc +++ b/gosa-core/include/class_core.inc @@ -99,18 +99,23 @@ class core extends plugin { "plDepends" => array(), "plPriority" => 0, "plSection" => array("administration"), - "plCategory" => array("all"), "plRequirements"=> array( 'ldapSchema' => array( 'gosaObject' => '>=2.7', + 'gosaAccount' => '>=2.7', 'gosaLockEntry' => '>=2.7', + 'gosaDepartment' => '>=2.7', 'gosaCacheEntry' => '>=2.7', - 'gosaConfig' => '>=2.7', - 'gosaProperties' => '>=2.7' - ) + 'gosaProperties' => '>=2.7', + 'gosaConfig' => '>=2.7' + ), + 'onFailureDisablePlugin' => array(get_class()) ), + + + "plCategory" => array("all"), "plProperties" => array( array(