summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 3158136)
raw | patch | inline | side by side (parent: 3158136)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 26 May 2010 06:57:28 +0000 (06:57 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 26 May 2010 06:57:28 +0000 (06:57 +0000) |
-Display all messages in a single dialog
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@18700 594d385d-05f5-0310-b6e9-bd551577e9d8
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@18700 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-core/include/class_configRegistry.inc | patch | blob | history |
diff --git a/gosa-core/include/class_configRegistry.inc b/gosa-core/include/class_configRegistry.inc
index db6d30fb7c30cc8e77bb033a6be5bf229eca99df..df9059f9f7df9ca37b5c02a64f47548a3b58e032 100644 (file)
$failure = FALSE;
if(isset($requirements['ldapSchema'])){
foreach($requirements['ldapSchema'] as $oc => $version){
- if(1 || !$this->ocAvailable($oc)){
+ if(rand(0,5)==1 || !$this->ocAvailable($oc)){
$this->detectedSchemaIssues['missing'][] = $oc;
$this->schemaCheckFailed = TRUE;
$failure = TRUE;
}elseif(!empty($version)){
$currentVersion = $this->getObjectClassVersion($oc);
- if(!empty($currentVersion) && !$this->ocVersionMatch($version, $currentVersion)){
+ if(1 || !empty($currentVersion) && !$this->ocVersionMatch($version, $currentVersion)){
if($currentVersion == -1){
$currentVersion = _("unknown");
}
- $this->detectedSchemaIssues['versionMismatch'] =
+ $this->detectedSchemaIssues['versionMismatch'][] =
sprintf(_("%s has version %s but %s required!"), bold($oc),bold($currentVersion),bold($version));
$this->schemaCheckFailed = TRUE;
$failure = TRUE;
function displayErrors()
{
+
+ $message = "";
if(count($this->detectedSchemaIssues['missing'])){
- msg_dialog::display(_("Schema validation error"),
- _("The following objectClasses are missing:").
- "<div class='scrollContainer' style='height:100px'>".
- msgPool::buildList($this->detectedSchemaIssues['missing']).
- "</div>",
- ERROR_DIALOG);
+ $message .=
+ _("The following objectClasses are missing:").
+ "<div class='scrollContainer' style='height:100px'>".
+ msgPool::buildList($this->detectedSchemaIssues['missing']).
+ "</div>";
}
if(count($this->detectedSchemaIssues['versionMismatch'])){
- msg_dialog::display(_("Schema validation error"),
- _("The following objectClasses do not match the version requirements:").
- "<div class='scrollContainer' style='height:100px'>".
- msgPool::buildList($this->detectedSchemaIssues['versionMismatch']).
- "</div>",
- ERROR_DIALOG);
+ $message.=
+ _("The following objectClasses do not match the version requirements:").
+ "<div class='scrollContainer' style='height:100px'>".
+ msgPool::buildList($this->detectedSchemaIssues['versionMismatch']).
+ "</div>";
}
+ if(count($this->pluginsDeactivated)){
+
+ $tmp = array();
+ foreach($this->pluginsDeactivated as $class){
+ $tmp[$class] = (isset($this->classToName[$class]))? $this->classToName[$class] : $class;
+ }
+
+ $message.= _("Due to unresolved requirements GOsa will deactivate the following plugins:").
+ "<div class='scrollContainer' style='height:100px'>".
+ msgPool::buildList($tmp).
+ "</div>";
+ }
+
+ if($message != ""){
+ msg_dialog::display(_("Schema validation error"),$message, ERROR_DIALOG);
+ }
}