X-Git-Url: http://positon.org/gitweb/?p=bizou.git;a=blobdiff_plain;f=index.php;h=8a690187072c770a8da08101ac971fd10b2ed2eb;hp=ff506030302ad0a0a913d3053399a6f6f9892c55;hb=8ed0bc08f5e9e151c7804e47aab402a523718568;hpb=fe20539226a68fbcac2f362e3523a895066f37ae diff --git a/index.php b/index.php index ff50603..8a69018 100644 --- a/index.php +++ b/index.php @@ -138,11 +138,7 @@ foreach (scandir($realDir) as $file) if ($file != '.' and $file != '..') { $ext = strtolower(substr($file, -4)); if ($ext == ".jpg" or $ext == ".png") { - $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") ); } else { $otherFiles[] = array( "name" => $file, "link" => dirname($scriptUrlPath)."/$realDir/$file" ); }