* (bug 17002) Add &minor= and &summary= as parameters in the url when editing, to...
authorX! <soxred93@users.mediawiki.org>
Tue, 13 Jan 2009 02:10:17 +0000 (02:10 +0000)
committerX! <soxred93@users.mediawiki.org>
Tue, 13 Jan 2009 02:10:17 +0000 (02:10 +0000)
RELEASE-NOTES
includes/EditPage.php

index 73adba6..2e0609c 100644 (file)
@@ -34,6 +34,7 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN
 * Added "__\" magic word to eat up all whitespace and newlines to the next 
   non-whitespace character, to facilitate writing readable template code where
   whitespace is significant. 
+* (bug 17002) Add &minor= and &summary= as parameters in the url when editing, to automatically add a summary or a minor edit.
   
 === Bug fixes in 1.15 ===
 * Fixing the caching issue by using -{T|xxx}- syntax (only applies on wiki with LanguageConverter class)
index 0193dc3..cef7e68 100644 (file)
@@ -644,6 +644,13 @@ class EditPage {
                        if ( $this->section == 'new' && $request->getVal( 'preloadtitle' ) ) {
                                $this->summary = $request->getVal( 'preloadtitle' );
                        }
+                       elseif ( $this->section != 'new' && $request->getVal( 'summary' ) ) {
+                               $this->summary = $request->getText( 'summary' );
+                       }
+                       
+                       if ( $request->getVal( 'minor' ) ) {
+                               $this->minoredit = true;
+                       }
                }
 
                $this->oldid = $request->getInt( 'oldid' );