Solved bug 14263, showing a diff on revert.
authorDaniel Friesen <dantman@users.mediawiki.org>
Sun, 1 Jun 2008 23:35:42 +0000 (23:35 +0000)
committerDaniel Friesen <dantman@users.mediawiki.org>
Sun, 1 Jun 2008 23:35:42 +0000 (23:35 +0000)
RELEASE-NOTES
includes/Article.php

index 67e3b2b..472b27f 100644 (file)
@@ -131,6 +131,7 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN
 * New layout for Special:Specialpages. Restricted pages are marked but not separated
   from other pages in their group. And the page uses css rather than tables to create
   a column layout which grades well in all sizes of browsers.
+* (bug 14263) Show a diff of the revert on rollback notification page.
 
 === Bug fixes in 1.13 ===
 
index 959924f..cc44187 100644 (file)
@@ -2611,6 +2611,8 @@ class Article {
                        . $wgUser->getSkin()->userToolLinks( $target->getUser(), $target->getUserText() );
                $wgOut->addHtml( wfMsgExt( 'rollback-success', array( 'parse', 'replaceafter' ), $old, $new ) );
                $wgOut->returnToMain( false, $this->mTitle );
+               $de = new DifferenceEngine( $this->mTitle, $current->getId(), 'next', false, true );
+               $de->showDiff();
        }