Renamed getThumbTarget to getImageLink
authorMarc MAURICE <dooblempub@positon.org>
Thu, 30 Dec 2010 16:46:02 +0000 (17:46 +0100)
committerMarc MAURICE <dooblempub@positon.org>
Thu, 30 Dec 2010 16:46:02 +0000 (17:46 +0100)
index.php
plugins/viewer/functions.php

index 8a69018..38e2a9b 100644 (file)
--- 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" );
                }
index 3d14508..71ec3f0 100644 (file)
@@ -1,5 +1,5 @@
 <?php
-function getThumbTarget($imageSimplePath)
+function getImageLink($imageSimplePath)
 {
        return dirname($_SERVER["SCRIPT_NAME"])."/plugins/viewer/view.php$imageSimplePath";
 }