summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: d68300d)
raw | patch | inline | side by side (parent: d68300d)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Fri, 11 Nov 2005 10:53:58 +0000 (10:53 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Fri, 11 Nov 2005 10:53:58 +0000 (10:53 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@1919 594d385d-05f5-0310-b6e9-bd551577e9d8
plugins/admin/systems/class_printGeneric.inc | patch | blob | history |
diff --git a/plugins/admin/systems/class_printGeneric.inc b/plugins/admin/systems/class_printGeneric.inc
index 4493e0be4a690a3adaeed6e120eb18966203040f..819d495db72325b4513b7f392aa882a5db85b4b8 100644 (file)
<?php
+
+
+
+
+
+
+
class printgeneric extends plugin
{
/* CLI vars */
}
if(isset($this->gotoPrinterPPD)){
- $this->gotoPrinterPPD = preg_replace("/http.*ppd\//i","",$this->gotoPrinterPPD);
+ $this->gotoPrinterPPD = preg_replace("/^http.*ppd\//i","",$this->gotoPrinterPPD);
}
/* In case of gotoWorkstation this tab is calles from workstation plugin
}
if(!is_array($this->attrs['gotoPrinterPPD'])) {
- $str = $method.$_SERVER['SERVER_NAME']."/ppd";
+ $str = $method.$_SERVER['SERVER_NAME']."/ppd/";
$this->attrs['gotoPrinterPPD'] = $str.$this->attrs['gotoPrinterPPD'];
+ $this->attrs['gotoPrinterPPD'] = str_replace("//","/",$this->attrs['gotoPrinterPPD']);
}
/* Append printer user