Fixed a bug when bizou was operating at the top root of a site
[bizou.git] / plugins / viewer / functions.php
index 71ec3f0..2ac59ac 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 function getImageLink($imageSimplePath)
 {
-       return dirname($_SERVER["SCRIPT_NAME"])."/plugins/viewer/view.php$imageSimplePath";
+       return $GLOBALS['rootUrl']."plugins/viewer/view.php$imageSimplePath";
 }
 ?>