Code

Updated 'update-gosa'
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 19 Nov 2010 13:17:06 +0000 (13:17 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 19 Nov 2010 13:17:06 +0000 (13:17 +0000)
-Do not use the scripts execution path to store images etc. store it in GOSA_HOME.

git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@20293 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-core/update-gosa

index 35adabdb02a825a10a0471a281bba939ee68910c..106bcdc5bef11a5a56297bea578514a9dbeb22fc 100755 (executable)
@@ -754,7 +754,7 @@ function rescan_images($path, $theme)
     $styles[$imagePath]= $styles[$realPath];
   }
 
-  imagePNG($dst, "html/themes/$theme/images/img.png", 9);
+  imagePNG($dst, GOSA_HOME."/html/themes/$theme/images/img.png", 9);
   imageDestroy($dst);
 
   // Show warnings images
@@ -764,7 +764,7 @@ function rescan_images($path, $theme)
 
   // Write styles
   echo "Writing styles...";
-  $fp = fopen("ihtml/themes/$theme/img.styles", 'w');
+  $fp = fopen(GOSA_HOME."/ihtml/themes/$theme/img.styles", 'w');
   fwrite($fp, serialize($styles));
   fclose($fp);