From: hickert Date: Fri, 19 Nov 2010 13:17:06 +0000 (+0000) Subject: Updated 'update-gosa' X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=e8b44c7955fe33ad6997e7ffbab9fa8bb97a598b;p=gosa.git Updated 'update-gosa' -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 --- diff --git a/gosa-core/update-gosa b/gosa-core/update-gosa index 35adabdb0..106bcdc5b 100755 --- a/gosa-core/update-gosa +++ b/gosa-core/update-gosa @@ -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);