* (bug 5903) When requesting the raw source of a non-existent message page, return...
authorRob Church <robchurch@users.mediawiki.org>
Sat, 24 Jun 2006 21:17:05 +0000 (21:17 +0000)
committerRob Church <robchurch@users.mediawiki.org>
Sat, 24 Jun 2006 21:17:05 +0000 (21:17 +0000)
* Improve default blank content of MediaWiki:Common.css and MediaWiki:Monobook.css

RELEASE-NOTES
includes/RawPage.php
languages/Messages.php

index c0abbc0..9e37d62 100644 (file)
@@ -557,6 +557,9 @@ Some default configuration options have changed:
 * (bug 6428) Incorrect form action URL on Special:Newimages with hidebots = 0 set
 * (bug 4990) Show page source to blocked users on edits, or their modified version
   if blocked during an edit
+* (bug 5903) When requesting the raw source of a non-existent message page,
+  return blank content (as opposed to the message key)
+* Improve default blank content of MediaWiki:Common.css and MediaWiki:Monobook.css
 
 == Compatibility ==
 
index 252ab32..3cdabfd 100644 (file)
@@ -153,7 +153,11 @@ class RawPage {
                if( $this->mTitle ) {
                        // If it's a MediaWiki message we can just hit the message cache
                        if ( $this->mTitle->getNamespace() == NS_MEDIAWIKI ) {
-                               $text = wfMsgForContentNoTrans( $this->mTitle->getDbkey() );
+                               $key = $this->mTitle->getDBkey();
+                               $text = wfMsgForContentNoTrans( $key );
+                               # If the message doesn't exist, return a blank
+                               if( $text == '&lt;' . $key . '&gt;' )
+                                       $text = '';
                                $found = true;
                        } else {
                                // Get it from the DB
index d13d41f..8e4f219 100644 (file)
@@ -1484,8 +1484,8 @@ In the latter case you can also use a link, e.g. [[{{ns:Special}}:Export/{{int:m
 'tooltip-watch' => 'Add this page to your watchlist [alt-w]',
 
 # stylesheets
-'Monobook.css' => '/* edit this file to customize the monobook skin for the entire site */',
-#'Monobook.js' => '/* edit this file to change js things in the monobook skin */',
+'Common.css' => '/** CSS placed here will be applied to all skins */',
+'Monobook.css' => '/* CSS placed here will affect users of the Monobook skin */',
 
 # Metadata
 'nodublincore' => 'Dublin Core RDF metadata disabled for this server.',