Skip to content

Commit

Permalink
fix: Fix coverfile check
Browse files Browse the repository at this point in the history
Fixes #100
  • Loading branch information
octfx committed Sep 10, 2024
1 parent d672d0e commit 07e4fa3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion includes/Media/VideoHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 07e4fa3

Please sign in to comment.