From 8ed46785c9e6db8458a54659ec56e38a6b3de069 Mon Sep 17 00:00:00 2001 From: hickert Date: Tue, 11 May 2010 07:41:55 +0000 Subject: [PATCH] removed defaults from get_cfg_value and added some missing properties. git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@18326 594d385d-05f5-0310-b6e9-bd551577e9d8 --- .../admin/systems/ppd/class_ppdManager.inc | 33 +++++++++---------- 1 file changed, 15 insertions(+), 18 deletions(-) diff --git a/gosa-plugins/goto/admin/systems/ppd/class_ppdManager.inc b/gosa-plugins/goto/admin/systems/ppd/class_ppdManager.inc index 15a9106d0..9f93d6c09 100644 --- a/gosa-plugins/goto/admin/systems/ppd/class_ppdManager.inc +++ b/gosa-plugins/goto/admin/systems/ppd/class_ppdManager.inc @@ -8,25 +8,22 @@ class ppdManager var $useGzip = true; - function ppdManager($path) - { - global $config; - $value =$config->get_cfg_value("core","ppdGzip","true"); - if(preg_match('/false/i',$value)){ - $this->useGzip = false; - } - - if(is_dir($path)){ - $this->path= $path; - }elseif(is_link($path) && (is_dir(readlink($path)))) { - $this->path= $path; - } else { - msg_dialog::display(_("PPD manager error"), sprintf(_("The specified path '%s' does not exist."),$path), ERROR_DIALOG); - return (false); - } - + function ppdManager($path) + { + global $config; + if($config->boolValueIsTrue("core","ppdGzip")){ + $this->useGzip = false; + } - } + if(is_dir($path)){ + $this->path= $path; + }elseif(is_link($path) && (is_dir(readlink($path)))) { + $this->path= $path; + } else { + msg_dialog::display(_("PPD manager error"), sprintf(_("The specified path '%s' does not exist."),$path), ERROR_DIALOG); + return (false); + } + } function findPPD($path) -- 2.30.2