From b980affad6b80a2d2a2172d70d6876380606be9a Mon Sep 17 00:00:00 2001 From: Sam Wilson Date: Wed, 3 Nov 2021 13:40:19 +0800 Subject: [PATCH] Don't add logging-related form inputs if not required Change-Id: I71d7f9b741cb60d0bbb8f0fbd6e8ac0967ee1492 --- includes/WikiEditorHooks.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/includes/WikiEditorHooks.php b/includes/WikiEditorHooks.php index 261d2a94..75c266cd 100644 --- a/includes/WikiEditorHooks.php +++ b/includes/WikiEditorHooks.php @@ -198,7 +198,8 @@ class WikiEditorHooks { * @param OutputPage $outputPage object. */ public static function editPageShowEditFormFields( EditPage $editPage, OutputPage $outputPage ) { - if ( $editPage->contentModel !== CONTENT_MODEL_WIKITEXT ) { + if ( $editPage->contentModel !== CONTENT_MODEL_WIKITEXT + || !ExtensionRegistry::getInstance()->isLoaded( 'EventLogging' ) ) { return; }