From: Marc MAURICE Date: Thu, 30 Dec 2010 16:46:02 +0000 (+0100) Subject: Renamed getThumbTarget to getImageLink X-Git-Tag: v1.2~5 X-Git-Url: http://positon.org/gitweb/?p=bizou.git;a=commitdiff_plain;h=e7ed1d501bc9e1f1c0a7c9f49ff2d32fc78757b8 Renamed getThumbTarget to getImageLink --- diff --git a/index.php b/index.php index 8a69018..38e2a9b 100644 --- a/index.php +++ b/index.php @@ -31,8 +31,8 @@ function plugins_include($phpFile) require "plugins/$p/$phpFile"; } -if (! function_exists('getThumbTarget')) { -function getThumbTarget($imageSimplePath) +if (! function_exists('getImageLink')) { +function getImageLink($imageSimplePath) { return dirname($_SERVER["SCRIPT_NAME"]).'/'.IMAGES_DIR.$imageSimplePath; } @@ -138,7 +138,7 @@ foreach (scandir($realDir) as $file) if ($file != '.' and $file != '..') { $ext = strtolower(substr($file, -4)); if ($ext == ".jpg" or $ext == ".png") { - $imageFiles[] = array( "name" => $file, "url" => getPreview("$realDir/$file"), "link" => getThumbTarget("$shortPath/$file") ); + $imageFiles[] = array( "name" => $file, "url" => getPreview("$realDir/$file"), "link" => getImageLink("$shortPath/$file") ); } else { $otherFiles[] = array( "name" => $file, "link" => dirname($scriptUrlPath)."/$realDir/$file" ); } diff --git a/plugins/viewer/functions.php b/plugins/viewer/functions.php index 3d14508..71ec3f0 100644 --- a/plugins/viewer/functions.php +++ b/plugins/viewer/functions.php @@ -1,5 +1,5 @@