From 5eb9720235830f210533a0e008c2f779adf2f4ac Mon Sep 17 00:00:00 2001 From: paladox Date: Sun, 3 May 2026 19:05:24 +0100 Subject: [PATCH 1/2] Fix support for SMW 7.x in SRFSlideShow::linkFurtherResults Fixes #1034 --- formats/slideshow/SRF_SlideShow.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/formats/slideshow/SRF_SlideShow.php b/formats/slideshow/SRF_SlideShow.php index 0b6d1fcde..d7a321ee4 100644 --- a/formats/slideshow/SRF_SlideShow.php +++ b/formats/slideshow/SRF_SlideShow.php @@ -117,7 +117,7 @@ protected function getResultText( QueryResult $res, $outputmode ) { * * @return bool */ - protected function linkFurtherResults( QueryResult $results ) { + protected function linkFurtherResults( QueryResult $results ): bool { return false; } From 567783499ae4a2cae63a4943dc1d96185d40ea42 Mon Sep 17 00:00:00 2001 From: paladox Date: Sun, 3 May 2026 19:16:38 +0100 Subject: [PATCH 2/2] Fix alt attribute handling for image in Carousel --- formats/carousel/Carousel.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/formats/carousel/Carousel.php b/formats/carousel/Carousel.php index d8398f4f1..34ddfcfd5 100644 --- a/formats/carousel/Carousel.php +++ b/formats/carousel/Carousel.php @@ -513,7 +513,7 @@ protected function getResultText( QueryResult $results, $outputmode ) { $imgAttr = [ 'src' => $imageValue, - 'alt' => ( $titleValue ?? $captionValue ? strip_tags( $captionValue ) : $title_->getText() ), + 'alt' => ( $titleValue ?? $captionValue ? strip_tags( $captionValue ?? '' ) : $title_->getText() ), 'class' => "slick-slide-content img" ];