X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Ffilerepo%2Ffile%2FForeignDBFile.php;h=ee4df1d351cba85920c42025a9aedf5f3240a0cc;hb=895d760d5541e015c2a3b3665a2bddbc535797ff;hp=7a982bd34ffc6833c4d02a0da603850fc3b5f3cd;hpb=925c20a9ca669c67cc44f4468d0e0f3b33b94213;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;