From 6adc4190c59730076c5e409e30ffd03afcbf38ab Mon Sep 17 00:00:00 2001 From: Daniel Friesen Date: Sun, 1 Jun 2008 23:35:42 +0000 Subject: [PATCH] Solved bug 14263, showing a diff on revert. --- RELEASE-NOTES | 1 + includes/Article.php | 2 ++ 2 files changed, 3 insertions(+) diff --git a/RELEASE-NOTES b/RELEASE-NOTES index 67e3b2b9e9..472b27f864 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -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 === diff --git a/includes/Article.php b/includes/Article.php index 959924f5fd..cc4418776d 100644 --- a/includes/Article.php +++ b/includes/Article.php @@ -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(); } -- 2.20.1