r45693 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r45692‎ | r45693 | r45694 >
Date:02:10, 13 January 2009
Author:soxred93
Status:ok
Tags:
Comment:
* (bug 17002) Add &minor= and &summary= as parameters in the url when editing, to automatically add a summary or a minor edit.
Modified paths:
  • /trunk/phase3/RELEASE-NOTES (modified) (history)
  • /trunk/phase3/includes/EditPage.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/EditPage.php
@@ -644,6 +644,13 @@
645645 if ( $this->section == 'new' && $request->getVal( 'preloadtitle' ) ) {
646646 $this->summary = $request->getVal( 'preloadtitle' );
647647 }
 648+ elseif ( $this->section != 'new' && $request->getVal( 'summary' ) ) {
 649+ $this->summary = $request->getText( 'summary' );
 650+ }
 651+
 652+ if ( $request->getVal( 'minor' ) ) {
 653+ $this->minoredit = true;
 654+ }
648655 }
649656
650657 $this->oldid = $request->getInt( 'oldid' );
Index: trunk/phase3/RELEASE-NOTES
@@ -34,6 +34,7 @@
3535 * Added "__\" magic word to eat up all whitespace and newlines to the next
3636 non-whitespace character, to facilitate writing readable template code where
3737 whitespace is significant.
 38+* (bug 17002) Add &minor= and &summary= as parameters in the url when editing, to automatically add a summary or a minor edit.
3839
3940 === Bug fixes in 1.15 ===
4041 * Fixing the caching issue by using -{T|xxx}- syntax (only applies on wiki with LanguageConverter class)

Follow-up revisions

RevisionCommit summaryAuthorDate
r45694(bug 17002) Add minor and summary parameters to InputBoxsoxred9302:18, 13 January 2009

Status & tagging log