X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fcontent%2FCodeContentHandler.php;h=e350fb3b41210cdda0d63a7617d39e790bc100a9;hb=63772e162d60009bdbd4991a34e4cfb4c774cb00;hp=20893bb0e7fc13f1861ab3a42e9b7e2d75fe57c5;hpb=abb4d29b54c1bc4b4fb620f1124559ead13a074e;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/content/CodeContentHandler.php b/includes/content/CodeContentHandler.php index 20893bb0e7..e350fb3b41 100644 --- a/includes/content/CodeContentHandler.php +++ b/includes/content/CodeContentHandler.php @@ -29,31 +29,31 @@ abstract class CodeContentHandler extends TextContentHandler { /** - * Returns the english language, because code is english, and should be handled as such. + * Returns the English language, because code is English, and should be handled as such. * * @param Title $title - * @param Content $content + * @param Content|null $content * - * @return Language Return of wfGetLangObj( 'en' ) + * @return Language * * @see ContentHandler::getPageLanguage() */ public function getPageLanguage( Title $title, Content $content = null ) { - return wfGetLangObj( 'en' ); + return Language::factory( 'en' ); } /** - * Returns the english language, because code is english, and should be handled as such. + * Returns the English language, because code is English, and should be handled as such. * * @param Title $title - * @param Content $content + * @param Content|null $content * - * @return Language Return of wfGetLangObj( 'en' ) + * @return Language * * @see ContentHandler::getPageViewLanguage() */ public function getPageViewLanguage( Title $title, Content $content = null ) { - return wfGetLangObj( 'en' ); + return Language::factory( 'en' ); } /**