From a4fb65e857c582d53c8cfd4269e2145fa5b4ab32 Mon Sep 17 00:00:00 2001 From: Marc MAURICE Date: Fri, 8 Oct 2010 00:43:28 +0200 Subject: [PATCH] fixes in varables names... --- view.php | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/view.php b/view.php index 1b38962..99e7f9c 100644 --- a/view.php +++ b/view.php @@ -1,15 +1,16 @@ 0) if ($pos < sizeof($images)) $nextImage = $images[$pos+1]; -$imageUrl = dirname($scriptPath)."/images$quickPath"; +// template variables +$imageUrl = dirname($scriptPath)."/images$shortPath"; if ($nextImage === '') { $nextImageUrl = ''; $nextPageUrl = ''; } else { - $nextImageUrl = dirname($scriptPath)."/images".dirname($quickPath)."/$nextImage"; + $nextImageUrl = dirname($scriptPath)."/images".dirname($shortPath)."/$nextImage"; $nextPageUrl = dirname($_SERVER["REQUEST_URI"])."/$nextImage"; } if ($prevImage === '') $prevPageUrl = ''; else $prevPageUrl = dirname($_SERVER["REQUEST_URI"])."/$prevImage"; -$directoryUrl = dirname($_SERVER["SCRIPT_NAME"])."/index".dirname($quickPath); +$directoryUrl = dirname($_SERVER["SCRIPT_NAME"])."/index".dirname($shortPath); header('Content-Type: text/html; charset=utf-8'); header('Expires: '.gmdate('D, d M Y H:i:s \G\M\T', time() + 3600)); @@ -112,7 +114,7 @@ img { -- 1.7.10.4