Code

Check things only once
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 25 May 2010 14:13:50 +0000 (14:13 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 25 May 2010 14:13:50 +0000 (14:13 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@18695 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-core/html/main.php
gosa-core/include/class_configRegistry.inc

index 710b8c34e7cc78a65215ce08db1e493c25578fc1..0b44deb1208d1558d9eca6a7e9fd2362f973a996 100644 (file)
@@ -65,7 +65,10 @@ if ($_SERVER['REMOTE_ADDR'] != $ui->ip){
 $config= session::global_get('config');
 $config->check_and_reload();
 $config->configRegistry->reload();
-if(!$config->configRegistry->validateSchemata($force=FALSE,$disableIncompatiblePlugins=TRUE)){
+
+// Validate LDAP schema if not done already
+if(!$config->configRegistry->schemaCheckFinished() && 
+    !$config->configRegistry->validateSchemata($force=FALSE,$disableIncompatiblePlugins=TRUE)){
     $config->configRegistry->displayErrors();
 }
 
index 1a2d7b733f522a99d533df5f80068f5387d71f08..33b033b69d798c1ea74e2f87fac4b99e76d37f29 100644 (file)
@@ -49,6 +49,12 @@ class configRegistry{
         $this->reload();
     }
 
+    
+    function schemaCheckFinished()
+    {
+        return($this->schemaCheckFinished);
+    }
+
 
     function validateSchemata($force = FALSE, $disableIncompatiblePlugins = FALSE)
     {