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();