From: X! Date: Tue, 13 Jan 2009 02:10:17 +0000 (+0000) Subject: * (bug 17002) Add &minor= and &summary= as parameters in the url when editing, to... X-Git-Tag: 1.31.0-rc.0~43445 X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/operations/recherche.php?a=commitdiff_plain;h=2e655b61ea57d2b0f4414b95a893fbaef3ea8092;p=lhc%2Fweb%2Fwiklou.git * (bug 17002) Add &minor= and &summary= as parameters in the url when editing, to automatically add a summary or a minor edit. --- 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' );