From 07e4fa3f4b5978115eb1c5e27487d71ecbcfa339 Mon Sep 17 00:00:00 2001 From: "H. C. Kruse" Date: Tue, 10 Sep 2024 14:21:29 +0200 Subject: [PATCH] fix: Fix coverfile check Fixes #100 --- includes/Media/VideoHandler.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/Media/VideoHandler.php b/includes/Media/VideoHandler.php index ad7254e..321d933 100644 --- a/includes/Media/VideoHandler.php +++ b/includes/Media/VideoHandler.php @@ -74,7 +74,7 @@ public function normaliseParams( $image, &$params ): bool { if ( $title !== null && $title->exists() ) { $coverFile = MediaWikiServices::getInstance()->getRepoGroup()->findFile( $title ); - if ( !$coverFile !== false ) { + if ( $coverFile !== false ) { $transform = $coverFile->transform( [ 'width' => $params['width'] ] ); try {