mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/AbuseFilter.git
synced 2024-11-27 15:30:42 +00:00
Pass context when contructing DifferenceEngines
Change-Id: I926c910bf983ae023bfc0c20a9262a1bde452a17
This commit is contained in:
parent
3d4d705b06
commit
6756f6f936
|
@ -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();
|
||||
|
||||
|
|
|
@ -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();
|
||||
|
||||
|
|
Loading…
Reference in a new issue