From f8dbdefdec6e0364ba6058526bbe8d59170cd44e Mon Sep 17 00:00:00 2001 From: paladox Date: Sun, 21 Mar 2021 00:17:56 +0000 Subject: [PATCH] Update Extension.php --- includes/Extension.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/includes/Extension.php b/includes/Extension.php index 5c8841f..7fe9e0e 100644 --- a/includes/Extension.php +++ b/includes/Extension.php @@ -49,8 +49,10 @@ class Extension { $flags, Status $hookStatus ) { + $isMinor = $flags & EDIT_MINOR; + $config = new Config(); - if ( !$config->parseOnEdit ) return true; + if ( !$config->parseOnEdit && $isMinor ) return true; $revision = $renderedRevision->getRevision(); $title = $revision->getPageAsLinkTarget();