From 2685c5b782897a37f78878d205dfad94ac7f2f16 Mon Sep 17 00:00:00 2001 From: blackcoder87 Date: Mon, 17 Jul 2023 15:05:45 +0200 Subject: [PATCH] Gallery: Remove usage of no longer existing column 'cat' (#707) --- application/modules/gallery/boxes/Pictureofx.php | 2 +- application/modules/gallery/config/config.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/application/modules/gallery/boxes/Pictureofx.php b/application/modules/gallery/boxes/Pictureofx.php index 91c5db623..93597ef4a 100644 --- a/application/modules/gallery/boxes/Pictureofx.php +++ b/application/modules/gallery/boxes/Pictureofx.php @@ -14,7 +14,7 @@ public function render() { $imageMapper = new ImageMapper(); $galleries = explode(',', $this->getConfig()->get('gallery_pictureOfXSource')); - $imageIds = $imageMapper->getListOfValidIds(['cat' => $galleries]); + $imageIds = $imageMapper->getListOfValidIds(['gallery_id' => $galleries]); if (!empty($imageIds)) { $currentPicOfX = explode(',', $this->getConfig()->get('gallery_currentPicOfX')); diff --git a/application/modules/gallery/config/config.php b/application/modules/gallery/config/config.php index ecc299b49..062e37d68 100644 --- a/application/modules/gallery/config/config.php +++ b/application/modules/gallery/config/config.php @@ -10,7 +10,7 @@ class Config extends \Ilch\Config\Install { public $config = [ 'key' => 'gallery', - 'version' => '1.20.0', + 'version' => '1.20.1', 'icon_small' => 'fa-regular fa-image', 'author' => 'Stantin, Thomas', 'link' => 'https://ilch.de',