From 52fad8d1b9bbf72a975d3f63cb48839b68e4bf4a Mon Sep 17 00:00:00 2001 From: Aaron van Geffen Date: Sat, 23 Dec 2023 13:47:16 +0100 Subject: [PATCH] PhotosIndex: fix dualMixed layout showing the same image twice --- templates/PhotosIndex.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/PhotosIndex.php b/templates/PhotosIndex.php index a1915e0..564143b 100644 --- a/templates/PhotosIndex.php +++ b/templates/PhotosIndex.php @@ -272,19 +272,19 @@ class PhotosIndex extends Template protected function dualMixed(array $photos, $altLayout) { - $image = array_shift($photos); - echo '
'; + $image = array_shift($photos); $this->photo($image, 'landscape', static::LANDSCAPE_WIDTH, static::LANDSCAPE_HEIGHT, 'top'); echo '
'; + $image = array_shift($photos); $this->photo($image, 'portrait', static::PORTRAIT_WIDTH, static::PORTRAIT_HEIGHT, true); echo '