From 6756f6f936117c8a3eb6146366c7a82de94849d0 Mon Sep 17 00:00:00 2001 From: MatmaRex Date: Mon, 10 Jun 2013 21:53:33 +0200 Subject: [PATCH] Pass context when contructing DifferenceEngines Change-Id: I926c910bf983ae023bfc0c20a9262a1bde452a17 --- Views/AbuseFilterViewDiff.php | 2 +- special/SpecialAbuseLog.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Views/AbuseFilterViewDiff.php b/Views/AbuseFilterViewDiff.php index 795fa86ce..3353f291a 100644 --- a/Views/AbuseFilterViewDiff.php +++ b/Views/AbuseFilterViewDiff.php @@ -399,7 +399,7 @@ class AbuseFilterViewDiff extends AbuseFilterView { $new = explode( "\n", preg_replace( "/\\\r\\\n?/", "\n", $new ) ); } - $diffEngine = new DifferenceEngine; + $diffEngine = new DifferenceEngine( $this->getContext() ); $diffEngine->showDiffStyle(); diff --git a/special/SpecialAbuseLog.php b/special/SpecialAbuseLog.php index 58bdb5a9e..baf260854 100644 --- a/special/SpecialAbuseLog.php +++ b/special/SpecialAbuseLog.php @@ -305,7 +305,7 @@ class SpecialAbuseLog extends SpecialPage { $old_wikitext = $vars->getVar( 'old_wikitext' )->toString(); $new_wikitext = $vars->getVar( 'new_wikitext' )->toString(); - $diffEngine = new DifferenceEngine; + $diffEngine = new DifferenceEngine( $this->getContext() ); $diffEngine->showDiffStyle();