summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: d2f82ca)
raw | patch | inline | side by side (parent: d2f82ca)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Tue, 9 May 2006 06:26:55 +0000 (06:26 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Tue, 9 May 2006 06:26:55 +0000 (06:26 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@3223 594d385d-05f5-0310-b6e9-bd551577e9d8
plugins/admin/systems/class_printerPPDDialog.inc | patch | blob | history |
diff --git a/plugins/admin/systems/class_printerPPDDialog.inc b/plugins/admin/systems/class_printerPPDDialog.inc
index d35eccbc965777bc1d6c2249b46d5ac209d493e9..f944b7a0485f4bb2f7cd10a3f8fa6fc8f89c0f52 100644 (file)
/* 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