X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fcontent%2FCodeContentHandler.php;h=dfd46c8fdc15ea00d26ebd4976586624b46d61c2;hb=a77525e56ac1a945d3cb2ef150191137d815fceb;hp=2bbf6ca7b25971bd68788bb8a346070d55e8fd99;hpb=df5e7c3aa0b508591cc95781872aac8f7a45b974;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/content/CodeContentHandler.php b/includes/content/CodeContentHandler.php index 2bbf6ca7b2..dfd46c8fdc 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 * - * @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 * - * @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' ); } /** @@ -64,11 +64,4 @@ abstract class CodeContentHandler extends TextContentHandler { throw new MWException( 'Subclass must override' ); } - /** - * @param SearchEngine $engine - * @return array - */ - public function getFieldsForSearchIndex( SearchEngine $engine ) { - return []; - } }