aboutsummaryrefslogtreecommitdiffstats
path: root/maintenance/preprocessorFuzzTest.php
diff options
context:
space:
mode:
authorTim Starling <tstarling@wikimedia.org>2020-11-04 10:24:01 +1100
committerTim Starling <tstarling@wikimedia.org>2020-11-04 10:29:25 +1100
commit3aa7afb2657ebfc6ceb20165f382dd239af76c8e (patch)
tree20a575be8e652ac415a1f104c456deb6a79d9ad3 /maintenance/preprocessorFuzzTest.php
parentf51ccd2ccef8cba0e7d874b6f7cf4b73bcd36636 (diff)
downloadmediawikicore-3aa7afb2657ebfc6ceb20165f382dd239af76c8e.tar.gz
mediawikicore-3aa7afb2657ebfc6ceb20165f382dd239af76c8e.zip
Remove unnecessary $wgHooks reference
The hook is not called because the script calls setTemplateCallback(), avoiding statelessFetchTemplate() which calls the hook. The hook function is wrong anyway and wouldn't have worked if it was called. Removing because it makes Phan fail on an unrelated change. Change-Id: Ia6a5b265dca5e0debc6f66dd5287105f44bbde88
Diffstat (limited to 'maintenance/preprocessorFuzzTest.php')
-rw-r--r--maintenance/preprocessorFuzzTest.php2
1 files changed, 0 insertions, 2 deletions
diff --git a/maintenance/preprocessorFuzzTest.php b/maintenance/preprocessorFuzzTest.php
index 36b665323642..e9ae4e220592 100644
--- a/maintenance/preprocessorFuzzTest.php
+++ b/maintenance/preprocessorFuzzTest.php
@@ -28,8 +28,6 @@ use Wikimedia\TestingAccessWrapper;
$optionsWithoutArgs = [ 'verbose' ];
require_once __DIR__ . '/CommandLineInc.php';
-$wgHooks['BeforeParserFetchTemplateAndtitle'][] = 'PPFuzzTester::templateHook';
-
class PPFuzzTester {
public $hairs = [
'[[', ']]', '{{', '{{', '}}', '}}', '{{{', '}}}',