* (bug 10438) HTML TeX formulas should not wrap
* Introduce "raw editing" mode for the watchlist, to allow bulk additions,
removals, and convenient exporting of watchlist contents
+* Put an (undo) button on the page history page, for people with rollback
+ permission only.
== Bugfixes since 1.10 ==
$text = $this->mArticle->getContent();
+ if ($undo > 0 && $undoafter > 0 && $undo < $undoafter) {
+ # If they got undoafter and undo round the wrong way, switch them
+ $temp = $undoafter;
+ $undoafter = $undo;
+ $undo = $temp;
+ }
+
if ( $undo > 0 && $undo > $undoafter ) {
# Undoing a specific edit overrides section editing; section-editing
# doesn't work with undoing.
if( $wgUser->isAllowed( 'rollback' ) && $latest ) {
$s .= ' '.$this->mSkin->generateRollback( $rev );
}
+
+ if ( $wgUser->isAllowed( 'rollback' ) && !is_null($next)) {
+ $undolink = $this->mSkin->makeKnownLinkObj(
+ $this->mTitle, '('.htmlspecialchars( wfMsg( 'editundo' ) ).')',
+ 'action=edit&undoafter=' . $next->rev_id . '&undo=' . $rev->getId(),
+ '', '', '', null );
+ $s .= ' <span class="mw-history-undo"> '."$undolink </span>";
+ }
wfRunHooks( 'PageHistoryLineEnding', array( &$row , &$s ) );