From 8e5cad8121b60cebc068df6bf5f86814dc52169a Mon Sep 17 00:00:00 2001 From: hickert Date: Mon, 14 Nov 2005 11:43:59 +0000 Subject: [PATCH] Fixed PPD upload git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@1938 594d385d-05f5-0310-b6e9-bd551577e9d8 --- plugins/admin/systems/class_printerPPDDialog.inc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/plugins/admin/systems/class_printerPPDDialog.inc b/plugins/admin/systems/class_printerPPDDialog.inc index 8515a1b49..ab1b17525 100644 --- a/plugins/admin/systems/class_printerPPDDialog.inc +++ b/plugins/admin/systems/class_printerPPDDialog.inc @@ -136,6 +136,7 @@ class printerPPDDialog extends plugin } }// Foreach if(!$found){ + $ppdname = $vendor."/".$vendor."-".preg_replace("/^[^ ]/","",str_replace("-","",$model)).".ppd"; $filename = $this->pathToPPD.$vendor."/".$vendor."-".preg_replace("/^[^ ]/","",str_replace("-","",$model)).".ppd"; $fp = @fopen($filename,"w+"); if(!$fp){ @@ -147,8 +148,11 @@ class printerPPDDialog extends plugin $tmp2= split("\n", $res); $tmp3['name'] =preg_replace("/^ -/","",$tmp2[1]); - $tmp3['link'] =$filename; + $tmp3['link'] =$ppdname; $tmp3['ppd'] =$res; + + print_a($tmp3); + $this->selectedPPD = $tmp3; $this->getPrinterReload(); } -- 2.30.2