http://www.mediawiki.org/wiki/Special:Code/MediaWiki/88560

Revision: 88560
Author:   ialex
Date:     2011-05-22 08:24:07 +0000 (Sun, 22 May 2011)
Log Message:
-----------
Use wfMessage() so that we can check message existence in content language 
instead of user language

Modified Paths:
--------------
    trunk/phase3/includes/resourceloader/ResourceLoaderWikiModule.php

Modified: trunk/phase3/includes/resourceloader/ResourceLoaderWikiModule.php
===================================================================
--- trunk/phase3/includes/resourceloader/ResourceLoaderWikiModule.php   
2011-05-22 03:25:37 UTC (rev 88559)
+++ trunk/phase3/includes/resourceloader/ResourceLoaderWikiModule.php   
2011-05-22 08:24:07 UTC (rev 88560)
@@ -51,8 +51,8 @@
         */
        protected function getContent( $title ) {
                if ( $title->getNamespace() === NS_MEDIAWIKI ) {
-                       $dbkey = $title->getDBkey();
-                       return wfEmptyMsg( $dbkey ) ? '' : wfMsgExt( $dbkey, 
'content' );
+                       $message = wfMessage( $title->getDBkey() 
)->inContentLanguage();
+                       return $message->exists() ? $message->plain() : '';
                }
                if ( !$title->isCssJsSubpage() ) {
                        return null;


_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs

Reply via email to