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' );
}
/**