index 07e9152569fd458c8ef48392957ae27fa9ac4d49..c01a2ec0e519fe9e696298030f2692cccbe49b79 100644 (file)
var $filename = "";
var $last_modified = 0;
var $filename = "";
var $last_modified = 0;
+ public $configRegistry = NULL;
+
/*! \brief Class constructor of the config class
*
* \param string 'filename' path to the configuration file
/*! \brief Class constructor of the config class
*
* \param string 'filename' path to the configuration file
if ($filename != ""){
$this->parse($filename);
}
if ($filename != ""){
$this->parse($filename);
}
+
+ // Load configuration registry
+ $this->configRegistry = new configRegistry($this);
}
}
*
*
*/
*
*
*/
- function get_cfg_value($name, $default= "") {
+ function get_cfg_value($name, $default= "")
+ {
+
+ if($this->configRegistry->propertyExists('core',$name)){
+ return($this->configRegistry->getPropertyValue('core',$name));
+ }
+
+ syslog(1, $name);
+
$name= strtoupper($name);
/* Check if we have a current value for $name */
$name= strtoupper($name);
/* Check if we have a current value for $name */