From: Marc MAURICE Date: Mon, 13 Jun 2011 13:56:41 +0000 (+0200) Subject: Fixed a bug: next image was not properly loaded for images at the images/ root X-Git-Tag: v1.5~4 X-Git-Url: http://positon.org/gitweb/?p=bizou.git;a=commitdiff_plain;h=d213139338a779b5feab9fa66081792bfabd04ce Fixed a bug: next image was not properly loaded for images at the images/ root (because of a double slash in URL) --- diff --git a/plugins/viewer/view.php b/plugins/viewer/view.php index ae5e686..a1af936 100644 --- a/plugins/viewer/view.php +++ b/plugins/viewer/view.php @@ -66,7 +66,7 @@ if ($nextImage === '') { $nextImageUrl = ''; $nextPageUrl = ''; } else { - $nextImageUrl = $bizouRootUrl.IMAGES_DIR.dirname($simpleImagePath)."/$nextImage"; + $nextImageUrl = dirname($bizouRootUrl.IMAGES_DIR.$simpleImagePath)."/$nextImage"; $nextPageUrl = dirname($_SERVER["REQUEST_URI"])."/$nextImage"; } if ($prevImage === '') $prevPageUrl = '';