X-Git-Url: http://git.cyclocoop.org/%22%20.%20generer_url_ecrire%28%22articles%22%2C%22id_article=%24ze_article%22%29%20.%20%22?a=blobdiff_plain;f=includes%2Fcontent%2FCodeContentHandler.php;h=dfd46c8fdc15ea00d26ebd4976586624b46d61c2;hb=9d12d0749c6b88f271b0421b6f21c4cc9d85231d;hp=20893bb0e7fc13f1861ab3a42e9b7e2d75fe57c5;hpb=eea57afbbe7bf8d62ad961b3828df4b1718ade18;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/content/CodeContentHandler.php b/includes/content/CodeContentHandler.php index 20893bb0e7..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' ); } /**