X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Ffilerepo%2Ffile%2FForeignDBFile.php;h=ee4df1d351cba85920c42025a9aedf5f3240a0cc;hb=74d04edec385aa86ee01943b9a27475d79f74e78;hp=7a982bd34ffc6833c4d02a0da603850fc3b5f3cd;hpb=8c96aec32cffaab96b2bd9dca206a99a13640545;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/filerepo/file/ForeignDBFile.php b/includes/filerepo/file/ForeignDBFile.php index 7a982bd34f..ee4df1d351 100644 --- a/includes/filerepo/file/ForeignDBFile.php +++ b/includes/filerepo/file/ForeignDBFile.php @@ -126,14 +126,14 @@ class ForeignDBFile extends LocalFile { * @param Language|null $lang Optional language to fetch description in. * @return string|false */ - function getDescriptionText( $lang = null ) { + function getDescriptionText( Language $lang = null ) { global $wgLang; if ( !$this->repo->fetchDescription ) { return false; } - $lang = $lang ?: $wgLang; + $lang = $lang ?? $wgLang; $renderUrl = $this->repo->getDescriptionRenderUrl( $this->getName(), $lang->getCode() ); if ( !$renderUrl ) { return false;