aboutsummaryrefslogtreecommitdiffstats
path: root/includes/actions/RollbackAction.php
diff options
context:
space:
mode:
authorDaniel Kinzler <daniel.kinzler@wikimedia.de>2012-03-27 14:08:04 +0000
committerDaniel Kinzler <daniel.kinzler@wikimedia.de>2012-04-04 19:59:46 +0200
commit88f8ab8e90a77f1d51785ba63f2eac10599c3063 (patch)
treee5ecd07494953191280bb19f46b0dd23851217d7 /includes/actions/RollbackAction.php
parent7648bb282adbcb104a1637a80e56703479e29f3c (diff)
downloadmediawikicore-88f8ab8e90a77f1d51785ba63f2eac10599c3063.tar.gz
mediawikicore-88f8ab8e90a77f1d51785ba63f2eac10599c3063.zip
use factory method to get difference engine everywhere
Diffstat (limited to 'includes/actions/RollbackAction.php')
-rw-r--r--includes/actions/RollbackAction.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/includes/actions/RollbackAction.php b/includes/actions/RollbackAction.php
index 8379e2767855..dd477933c3a5 100644
--- a/includes/actions/RollbackAction.php
+++ b/includes/actions/RollbackAction.php
@@ -109,7 +109,8 @@ class RollbackAction extends FormlessAction {
$this->getOutput()->returnToMain( false, $this->getTitle() );
if ( !$request->getBool( 'hidediff', false ) && !$this->getUser()->getBoolOption( 'norollbackdiff', false ) ) {
- $de = new DifferenceEngine( $this->getContext(), $current->getId(), $newId, false, true );
+ $contentHandler = ContentHandler::getForTitle( $this->getTitle() );
+ $de = $contentHandler->getDifferenceEngine( $this->getContext(), $current->getId(), $newId, false, true );
$de->showDiff( '', '' );
}
}