Index: trunk/phase3/RELEASE-NOTES-1.19 |
— | — | @@ -109,6 +109,7 @@ |
110 | 110 | restrictions on some of the database fields. |
111 | 111 | * Timezones are now recognised in user preferences when offset is different |
112 | 112 | due to DST |
| 113 | +* (bug 31692) "summary" parameter now also work when undoing revisions |
113 | 114 | |
114 | 115 | === API changes in 1.19 === |
115 | 116 | * (bug 19838) siprop=interwikimap can now use the interwiki cache. |
Index: trunk/phase3/includes/EditPage.php |
— | — | @@ -238,7 +238,12 @@ |
239 | 239 | $firstrev = $oldrev->getNext(); |
240 | 240 | # If we just undid one rev, use an autosummary |
241 | 241 | if ( $firstrev->mId == $undo ) { |
242 | | - $this->summary = wfMsgForContent( 'undo-summary', $undo, $undorev->getUserText() ); |
| 242 | + $undoSummary = wfMsgForContent( 'undo-summary', $undo, $undorev->getUserText() ); |
| 243 | + if ( $this->summary === '' ) { |
| 244 | + $this->summary = $undoSummary; |
| 245 | + } else { |
| 246 | + $this->summary = $undoSummary . wfMsgForContent( 'colon-separator' ) . $this->summary; |
| 247 | + } |
243 | 248 | $this->undidRev = $undo; |
244 | 249 | } |
245 | 250 | $this->formtype = 'diff'; |