(bug 25535) Don't include empty JS/CSS messages at <Skinname.js>
authorRoan Kattouw <catrope@users.mediawiki.org>
Mon, 18 Oct 2010 15:15:32 +0000 (15:15 +0000)
committerRoan Kattouw <catrope@users.mediawiki.org>
Mon, 18 Oct 2010 15:15:32 +0000 (15:15 +0000)
includes/ResourceLoaderModule.php

index b13557a..f70ecc1 100644 (file)
@@ -760,7 +760,7 @@ abstract class ResourceLoaderWikiModule extends ResourceLoaderModule {
        
        protected function getContent( $page, $ns ) {
                if ( $ns === NS_MEDIAWIKI ) {
-                       return wfMsgExt( $page, 'content' );
+                       return wfEmptyMsg( $page ) ? '' : wfMsgExt( $page, 'content' );
                }
                if ( $title = Title::newFromText( $page, $ns ) ) {
                        if ( $title->isValidCssJsSubpage() && $revision = Revision::newFromTitle( $title ) ) {