summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 4e6a294)
raw | patch | inline | side by side (parent: 4e6a294)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 5 May 2010 10:05:47 +0000 (10:05 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 5 May 2010 10:05:47 +0000 (10:05 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@18136 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-core/include/class_config.inc | patch | blob | history |
index c01a2ec0e519fe9e696298030f2692cccbe49b79..b6e0c270cd4cea9709b41dd1ed763e1b06c8017c 100644 (file)
/* Search mailMethod konfiguration in main section too
*/
- $this->current['MAILMETHOD'] = $this->get_cfg_value("mailMethod","");
+ $this->current['MAILMETHOD'] = $this->get_cfg_value("core","mailMethod","");
if (!isset($this->current['MAILMETHOD'])){
$this->current['MAILMETHOD']= "";
}
*
*
*/
- function get_cfg_value($name, $default= "")
+ function get_cfg_value($class,$name, $default= "")
{
- if($this->configRegistry->propertyExists('core',$name)){
- return($this->configRegistry->getPropertyValue('core',$name));
+ if($this->configRegistry->propertyExists($class,$name)){
+ return($this->configRegistry->getPropertyValue($class,$name));
}
syslog(1, $name);
There will also be some errors psoted, if the configuration failed */
function snapshotEnabled()
{
- if($this->get_cfg_value("enableSnapshots") == "true"){
+ if($this->get_cfg_value("core","enableSnapshots") == "true"){
/* Check if the snapshot_base is defined */
- if ($this->get_cfg_value("snapshotBase") == ""){
+ if ($this->get_cfg_value("core","snapshotBase") == ""){
/* Send message if not done already */
if(!session::is_set("snapshotFailMessageSend")){
}
/* check if there are special server configurations for snapshots */
- if ($this->get_cfg_value("snapshotURI") != ""){
+ if ($this->get_cfg_value("core","snapshotURI") != ""){
/* check if all required vars are available to create a new ldap connection */
$missing = "";
foreach(array("snapshotURI","snapshotAdminDn","snapshotAdminPassword","snapshotBase") as $var){
- if($this->get_cfg_value($var) == ""){
+ if($this->get_cfg_value("core",$var) == ""){
$missing .= $var." ";
/* Send message if not done already */