X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2FLinker.php;h=01f695a31f759f9e8003b53aab827d724b170d50;hb=88d83ed6050ead59736b9410396f1955c3f2df89;hp=198015466fee68ce8d9f77c40046bf61ffeb80e0;hpb=6b9b8b9addab07f58bb024735c69722c7db88669;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/Linker.php b/includes/Linker.php index 198015466f..01f695a31f 100644 --- a/includes/Linker.php +++ b/includes/Linker.php @@ -688,8 +688,8 @@ class Linker { $label = $title->getPrefixedText(); } $encLabel = htmlspecialchars( $label ); - $file = MediaWikiServices::getInstance()->getRepoGroup()->findFile( $title ); - $currentExists = $time ? ( $file != false ) : false; + $currentExists = $time + && MediaWikiServices::getInstance()->getRepoGroup()->findFile( $title ) !== false; if ( ( $wgUploadMissingFileUrl || $wgUploadNavigationUrl || $wgEnableUploads ) && !$currentExists