Merge "Don't add logging-related form inputs if not required"

This commit is contained in:
jenkins-bot 2021-11-07 13:55:27 +00:00 committed by Gerrit Code Review
commit c0967dbe3a

View file

@ -200,7 +200,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;
}