Code

Fixed url stripping
authorcajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 14 Nov 2005 08:33:31 +0000 (08:33 +0000)
committercajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 14 Nov 2005 08:33:31 +0000 (08:33 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@1932 594d385d-05f5-0310-b6e9-bd551577e9d8

plugins/admin/systems/class_printGeneric.inc

index 819d495db72325b4513b7f392aa882a5db85b4b8..2641ae79e3ba78efd04eb48479f55c47fbb0e024 100644 (file)
@@ -1,12 +1,5 @@
 <?php
 
-
-
-
-
-
-
-
 class printgeneric extends plugin
 {
   /* CLI vars */
@@ -528,9 +521,9 @@ class printgeneric extends plugin
     }
   
     if(!is_array($this->attrs['gotoPrinterPPD'])) {
-      $str = $method.$_SERVER['SERVER_NAME']."/ppd/";
-      $this->attrs['gotoPrinterPPD'] = $str.$this->attrs['gotoPrinterPPD'];
-      $this->attrs['gotoPrinterPPD'] = str_replace("//","/",$this->attrs['gotoPrinterPPD']);
+      $this->attrs['gotoPrinterPPD'] = $this->attrs['gotoPrinterPPD'];
+      $this->attrs['gotoPrinterPPD'] = $method.$_SERVER['SERVER_NAME']."/ppd/".
+                                       str_replace("//","/",$this->attrs['gotoPrinterPPD']);
     }
 
     /* Append printer user