From: hickert Date: Mon, 14 Nov 2005 11:43:59 +0000 (+0000) Subject: Fixed PPD upload X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=8e5cad8121b60cebc068df6bf5f86814dc52169a;p=gosa.git Fixed PPD upload git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@1938 594d385d-05f5-0310-b6e9-bd551577e9d8 --- 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(); }