From: Marc MAURICE Date: Thu, 7 Oct 2010 22:43:28 +0000 (+0200) Subject: fixes in varables names... X-Git-Tag: v1.0~8 X-Git-Url: http://positon.org/gitweb/?p=bizou.git;a=commitdiff_plain;h=a4fb65e857c582d53c8cfd4269e2145fa5b4ab32 fixes in varables names... --- 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 {