From 2e655b61ea57d2b0f4414b95a893fbaef3ea8092 Mon Sep 17 00:00:00 2001 From: X! Date: Tue, 13 Jan 2009 02:10:17 +0000 Subject: [PATCH] * (bug 17002) Add &minor= and &summary= as parameters in the url when editing, to automatically add a summary or a minor edit. --- RELEASE-NOTES | 1 + includes/EditPage.php | 7 +++++++ 2 files changed, 8 insertions(+) diff --git a/RELEASE-NOTES b/RELEASE-NOTES index 73adba6dcf..2e0609c519 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -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) diff --git a/includes/EditPage.php b/includes/EditPage.php index 0193dc38c8..cef7e68679 100644 --- a/includes/EditPage.php +++ b/includes/EditPage.php @@ -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' ); -- 2.20.1