X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fpage%2FImagePage.php;h=639cbd07d69bf7521e268c6c772e8d836ffb180e;hb=ec7549abb86d6f20683049984518cd9b39eaaefe;hp=0e3eaa5bcc672a193f83889c5a8d11beee270eb6;hpb=d6276525455e6a00fffc90229ef81a1fc8feaa25;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/page/ImagePage.php b/includes/page/ImagePage.php index 0e3eaa5bcc..639cbd07d6 100644 --- a/includes/page/ImagePage.php +++ b/includes/page/ImagePage.php @@ -963,7 +963,7 @@ EOT $fromSrc = $this->getContext()->msg( 'shared-repo-from', $file->getRepo()->getDisplayName() - )->text(); + )->escaped(); } $out->addHTML( "
  • {$link} {$fromSrc}
  • \n" ); } @@ -1054,8 +1054,8 @@ EOT protected function doRenderLangOpt( array $langChoices, $curLang, $defaultLang ) { global $wgScript; sort( $langChoices ); - $curLang = wfBCP47( $curLang ); - $defaultLang = wfBCP47( $defaultLang ); + $curLang = LanguageCode::bcp47( $curLang ); + $defaultLang = LanguageCode::bcp47( $defaultLang ); $opts = ''; $haveCurrentLang = false; $haveDefaultLang = false; @@ -1067,7 +1067,7 @@ EOT // include a choice for that. Last of all, if we're viewing // the file in a language not on the list, add it as a choice. foreach ( $langChoices as $lang ) { - $code = wfBCP47( $lang ); + $code = LanguageCode::bcp47( $lang ); $name = Language::fetchLanguageName( $code, $this->getContext()->getLanguage()->getCode() ); if ( $name !== '' ) { $display = $this->getContext()->msg( 'img-lang-opt', $code, $name )->text();