* (bug 18180) Special:Export ignores limit, dir, offset parameters
* User::getBlockedStatus() works for all kinds of user objects and doesn't
assume the user object is equal to the current-user object ($wgUser)
+* (bug 20517) Cancel link from edit page now returns to the old version when
+ editing an old version
== API changes in 1.16 ==
# Enabled article-related sidebar, toplinks, etc.
$wgOut->setArticleRelated( true );
+ $cancelParams = array();
+
if ( $this->isConflict ) {
$wgOut->wrapWikiMsg( "<div class='mw-explainconflict'>\n$1</div>", 'explainconflict' );
if ( !$this->mArticle->mRevision->isCurrent() ) {
$this->mArticle->setOldSubtitle( $this->mArticle->mRevision->getId() );
+ $cancelParams['oldid'] = $this->mArticle->mRevision->getId();
$wgOut->addWikiMsg( 'editingold' );
}
}
$wgTitle,
wfMsgExt( 'cancel', array( 'parseinline' ) ),
array( 'id' => 'mw-editform-cancel' ),
- array(),
+ $cancelParams,
array( 'known', 'noclasses' )
);
$separator = wfMsgExt( 'pipe-separator' , 'escapenoentities' );