X-Git-Url: http://git.cyclocoop.org/?a=blobdiff_plain;f=includes%2Fcontent%2FContentHandler.php;h=cc73dd206423a55316ad375df26a66576cb4e26f;hb=2e1ac38485b9c78890944413cba074474c06bd34;hp=ae47b860566b278dc1e6ff2666fcaffca2aa1374;hpb=c4e35c216d4036cc7f19e499e214278d9572da52;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/content/ContentHandler.php b/includes/content/ContentHandler.php index ae47b86056..cc73dd2064 100644 --- a/includes/content/ContentHandler.php +++ b/includes/content/ContentHandler.php @@ -1,4 +1,5 @@ getNativeData(). + * text as returned by $content->getText(). * * If $content is not a TextContent object, the behavior of this method * depends on the global $wgContentHandlerTextFallback: @@ -667,7 +668,7 @@ abstract class ContentHandler { * This default implementation just returns the content language (except for pages * in the MediaWiki namespace) * - * Note that the pages language is not cacheable, since it may in some + * Note that the page's language is not cacheable, since it may in some * cases depend on user settings. * * Also note that the page language may or may not depend on the actual content of the page, @@ -684,7 +685,7 @@ abstract class ContentHandler { global $wgLang; $pageLang = MediaWikiServices::getInstance()->getContentLanguage(); - if ( $title->getNamespace() == NS_MEDIAWIKI ) { + if ( $title->inNamespace( NS_MEDIAWIKI ) ) { // Parse mediawiki messages with correct target language list( /* $unused */, $lang ) = MessageCache::singleton()->figureMessage( $title->getText() ); $pageLang = Language::factory( $lang );