summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 19b860e)
raw | patch | inline | side by side (parent: 19b860e)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 2 Jun 2010 12:57:11 +0000 (12:57 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 2 Jun 2010 12:57:11 +0000 (12:57 +0000) |
-Fixed logging (No recursions anymore)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@18839 594d385d-05f5-0310-b6e9-bd551577e9d8
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@18839 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-core/include/class_config.inc | patch | blob | history | |
gosa-core/include/class_configRegistry.inc | patch | blob | history |
index 4f7c82f131114f4b4f7daa6de5e58f41bfaaff14..faf44aab39c86b57e58b951811c19f1a68de7875 100644 (file)
}
// Show a warning in the syslog if there is an undefined property requested.
- new log("debug","","Unconfigured property: '{$class}::{$name}'",array(),'');
+ if($this->configRegistry->propertyInitializationComplete() &&
+ "{$class}::{$name}" != 'core::config' && // <--- This on is never set, only in gosa.conf.
+ "{$class}::{$name}" != 'core::logging'){ // <--- This one may cause endless recursions in class_log.inc
+ new log("debug","","Unconfigured property: '{$class}::{$name}'",array(),'');
+ }
// Try to find the property in the config file directly.
$name= strtoupper($name);
diff --git a/gosa-core/include/class_configRegistry.inc b/gosa-core/include/class_configRegistry.inc
index 697aea85e720b48fac20a84e18b6bae03ddb2095..d14f4ef4401c7c4801ee24706aaf2f62a927b5b0 100644 (file)
$this->ldapStoredProperties[$class][$name] = $value;
}
}
- $this->status = 'finished';
}
// Register plugin properties.
}
}
}
+
+ // We are only finsihed once we are logged in.
+ if(!empty($this->config->current['CONFIG'])){
+ $this->status = 'finished';
+ }
+ }
+
+
+ /*! \brief Returns TRUE if the property registration has finished without any error.
+ */
+ function propertyInitializationComplete()
+ {
+ return($this->status == 'finished');
}