From a3dd43c2ac343e3f5a084baa8163684572b23c31 Mon Sep 17 00:00:00 2001 From: hickert Date: Tue, 9 May 2006 06:26:55 +0000 Subject: [PATCH] Removed modified ppd from select list git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@3223 594d385d-05f5-0310-b6e9-bd551577e9d8 --- plugins/admin/systems/class_printerPPDDialog.inc | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) diff --git a/plugins/admin/systems/class_printerPPDDialog.inc b/plugins/admin/systems/class_printerPPDDialog.inc index d35eccbc9..f944b7a04 100644 --- a/plugins/admin/systems/class_printerPPDDialog.inc +++ b/plugins/admin/systems/class_printerPPDDialog.inc @@ -49,20 +49,7 @@ class printerPPDDialog extends plugin /* Load all available PPD files and sort them into an array */ require_once ("class_ppdManager.inc"); $this->ppdManager= new ppdManager($this->pathToPPD); - $tmp = $this->ppdManager->getPrinterList(); - - /* Sort all available files, and create header (Vendor index) */ - foreach($tmp as $file=>$ppd){ - $tmp2 = split("\n",$ppd); - if(!isset($this->ppdListHeader[$tmp2[0]])){ - $this->ppdListHeader[$tmp2[0]]=0; - } - $tmp3['name'] =preg_replace("/^ -/","",$tmp2[1]." - ".$tmp2[2]); - $tmp3['link'] =preg_replace("/".str_replace("/","\/",$this->pathToPPD)."/i","",$file); - $tmp3['ppd'] =$ppd; - $this->ppdListHeader[$tmp2[0]]++; - $this->ppdList[$tmp2[0]][preg_replace("/^ -/","",$tmp2[1]." - ".$tmp2[2])]=$tmp3; - } + $this->getPrinterReload (); /* The user has already a valid PPD assigned * Get some informations about this PPD -- 2.30.2