- $link = dirname($scriptUrlPath)."/$realDir/$file";
- $link = getThumbTarget("$shortPath/$file");
-
- $imageFiles[] = array( "name" => $file, "url" => getPreview("$realDir/$file"), "link" => $link );
-
+ $imageFiles[] = array( "name" => $file, "url" => getPreview("$realDir/$file"), "link" => getThumbTarget("$shortPath/$file") );