From: hickert Date: Wed, 5 May 2010 10:04:21 +0000 (+0000) Subject: Added property class to get_cfg_requests X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=8742663ad4f29d0e36cdf2999a6073dbf2a11af4;p=gosa.git Added property class to get_cfg_requests git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@18121 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-plugins/goto/admin/systems/ppd/class_ppdManager.inc b/gosa-plugins/goto/admin/systems/ppd/class_ppdManager.inc index bae18536a..15a9106d0 100644 --- a/gosa-plugins/goto/admin/systems/ppd/class_ppdManager.inc +++ b/gosa-plugins/goto/admin/systems/ppd/class_ppdManager.inc @@ -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; } diff --git a/gosa-plugins/goto/admin/systems/ppd/class_printerPPDDialog.inc b/gosa-plugins/goto/admin/systems/ppd/class_printerPPDDialog.inc index da5e4b5a9..c82c53030 100644 --- a/gosa-plugins/goto/admin/systems/ppd/class_printerPPDDialog.inc +++ b/gosa-plugins/goto/admin/systems/ppd/class_printerPPDDialog.inc @@ -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 .= "\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 .= "\n";