* Fixed wgReason URL parameter to action=delete.
authorDaniel Cannon <amidaniel@users.mediawiki.org>
Mon, 19 Nov 2007 03:59:45 +0000 (03:59 +0000)
committerDaniel Cannon <amidaniel@users.mediawiki.org>
Mon, 19 Nov 2007 03:59:45 +0000 (03:59 +0000)
RELEASE-NOTES
includes/Article.php

index bdf4a83..27a4e0e 100644 (file)
@@ -163,6 +163,7 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN
   the page
 * Check for if IP is blocked as part of a range when unblocking (see above bug-
   fix) was faulty. Now fixed.
+* Fixed wgReason URL parameter to action=delete.
 
 === API changes in 1.12 ===
 
index 75ac533..e4fcc33 100644 (file)
@@ -1960,7 +1960,7 @@ class Article {
 
                // Generate deletion reason
                $hasHistory = false;
-               $reason = $this->generateReason($hasHistory);
+               if ( !$reason ) $reason = $this->generateReason($hasHistory);
 
                // If the page has a history, insert a warning
                if( $hasHistory && !$confirm ) {