Code

Added property class to get_cfg_requests
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 5 May 2010 10:04:21 +0000 (10:04 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 5 May 2010 10:04:21 +0000 (10:04 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@18121 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-plugins/goto/admin/systems/ppd/class_ppdManager.inc
gosa-plugins/goto/admin/systems/ppd/class_printerPPDDialog.inc

index bae18536a97e46a1db319b41b05eec50452d40c4..15a9106d007136ed7726c39ff7d841cc4fe4ddaa 100644 (file)
@@ -11,7 +11,7 @@ class ppdManager
        function ppdManager($path)
        {
     global $config;
-    $value =$config->get_cfg_value("ppdGzip","true");
+    $value =$config->get_cfg_value("core","ppdGzip","true");
     if(preg_match('/false/i',$value)){
       $this->useGzip  = false;
     }
index da5e4b5a94d56aac036b0468de14d8bfdf3f8478..c82c5303059b210bf05756677161b66d21223ccd 100644 (file)
@@ -38,8 +38,8 @@ class printerPPDDialog extends plugin
 
     /* Get PPD path and remove double //, and add trailing /  */
     $config = session::get('config');
-    if($config->get_cfg_value("ppdPath") != ""){
-      $this->pathToPPD = $config->get_cfg_value("ppdPath");
+    if($config->get_cfg_value("core","ppdPath") != ""){
+      $this->pathToPPD = $config->get_cfg_value("core","ppdPath");
       $this->pathToPPD= preg_replace("/\/\//", "/", $this->pathToPPD);
       if(!preg_match("/\/$/",$this->pathToPPD)){
         $this->pathToPPD = $this->pathToPPD."/";
@@ -532,7 +532,7 @@ class printerPPDDialog extends plugin
             }          
             $str  .=  "</select>\n";
 
-          }elseif($this->config->get_cfg_value("displayErrors") == "true"){
+          }elseif($this->config->get_cfg_value("core","displayErrors") == "true"){
             msg_dialog::display(_("PPD error"), sprintf(_("PPD type '%s' is not supported!"), $type), ERROR_DIALOG);
           }
           $str .= "</td></tr>\n";