restrictions on some of the database fields.
* Timezones are now recognised in user preferences when offset is different
due to DST
+* (bug 31692) "summary" parameter now also work when undoing revisions
=== API changes in 1.19 ===
* (bug 19838) siprop=interwikimap can now use the interwiki cache.
$firstrev = $oldrev->getNext();
# If we just undid one rev, use an autosummary
if ( $firstrev->mId == $undo ) {
- $this->summary = wfMsgForContent( 'undo-summary', $undo, $undorev->getUserText() );
+ $undoSummary = wfMsgForContent( 'undo-summary', $undo, $undorev->getUserText() );
+ if ( $this->summary === '' ) {
+ $this->summary = $undoSummary;
+ } else {
+ $this->summary = $undoSummary . wfMsgForContent( 'colon-separator' ) . $this->summary;
+ }
$this->undidRev = $undo;
}
$this->formtype = 'diff';