<?php
-function getThumbTarget($imageSimplePath)
+function getImageLink($imageSimplePath)
{
- return dirname($_SERVER["SCRIPT_NAME"])."/plugins/viewer/view.php$imageSimplePath";
+ return $GLOBALS['rootUrl']."plugins/viewer/view.php$imageSimplePath";
}
?>