Code

removed defaults from get_cfg_value and added some missing properties.
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 11 May 2010 07:41:50 +0000 (07:41 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 11 May 2010 07:41:50 +0000 (07:41 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@18324 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-core/include/functions.inc

index 76dd67aa57a00ac829d4a1824be012eebd02fd8d..1e86262c188944812ca5d06c28c1e1642224c707 100644 (file)
@@ -308,7 +308,7 @@ function get_template_path($filename= '', $plugin= FALSE, $path= "")
 
   /* Set theme */
   if (isset ($config)){
-       $theme= $config->get_cfg_value("core","theme", "default");
+       $theme= $config->get_cfg_value("core","theme");
   } else {
        $theme= "default";
   }
@@ -3308,7 +3308,7 @@ function get_next_id($attrib, $dn)
 {
   global $config;
 
-  switch ($config->get_cfg_value("core","idAllocationMethod", "traditional")){
+  switch ($config->get_cfg_value("core","idAllocationMethod")){
     case "pool":
       return get_next_id_pool($attrib);
     case "traditional":
@@ -3499,7 +3499,7 @@ function image($path, $action= "", $title= "", $align= "middle")
 
     // Get theme
     if (isset ($config)){
-      $theme= $config->get_cfg_value("core","theme", "default");
+      $theme= $config->get_cfg_value("core","theme");
     } else {
       # For debuging - avoid that there's no theme set
       die("config not set!");