* (bug 12647) Allow autogenerated edit summary messages to be blanked with '-'
authorBrion Vibber <brion@users.mediawiki.org>
Mon, 1 Dec 2008 20:12:01 +0000 (20:12 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Mon, 1 Dec 2008 20:12:01 +0000 (20:12 +0000)
RELEASE-NOTES
includes/Article.php

index 428e567..f033e4d 100644 (file)
@@ -384,6 +384,7 @@ The following extensions are migrated into MediaWiki 1.14:
   later that day, the IP still couldn't create another account, because it
   had marked them as having created another account, when their last account
   creation had actually failed.
+* (bug 12647) Allow autogenerated edit summary messages to be blanked with '-'
 
 === API changes in 1.14 ===
 
index 262806e..1578e88 100644 (file)
@@ -2046,6 +2046,11 @@ class Article {
                        else
                                $reason = wfMsgForContent( 'excontent', '$1' );
                }
+               
+               if( $reason == '-' ) {
+                       // Allow these UI messages to be blanked out cleanly
+                       return '';
+               }
 
                // Replace newlines with spaces to prevent uglyness
                $contents = preg_replace( "/[\n\r]/", ' ', $contents );