summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 36307f3)
raw | patch | inline | side by side (parent: 36307f3)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Mon, 20 Sep 2010 08:49:41 +0000 (08:49 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Mon, 20 Sep 2010 08:49:41 +0000 (08:49 +0000) |
-Allow to have multiple ppd files for a single printer.
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@19766 594d385d-05f5-0310-b6e9-bd551577e9d8
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@19766 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-plugins/goto/admin/systems/ppd/class_printerPPDDialog.inc | patch | blob | history |
diff --git a/gosa-plugins/goto/admin/systems/ppd/class_printerPPDDialog.inc b/gosa-plugins/goto/admin/systems/ppd/class_printerPPDDialog.inc
index 5cb74be5ad2aeb6bf280ed6e20b9aa4c4bab5c35..fa72e71108b08fd76a4430bbad8ae6c0ad4f24b8 100644 (file)
/* Sort all available files, and create header (Vendor index) */
foreach($tmp as $file=>$ppd){
+ // Append the nickname to the ppds name, to be able to have multiple
+ // ppd files for a printer type
+ if(isset($ppd['nickname']) && !empty($ppd['nickname'])){
+ $ppd['name'] .= " (".$ppd['nickname'].")";
+ }
+
if(preg_match("#".preg_quote($this->pathToModified,'#')."#",$file)) continue;
if(!isset($ppd['manufacturer'])) continue;