jenkins-bot has submitted this change and it was merged. ( 
https://gerrit.wikimedia.org/r/379294 )

Change subject: Make BoardContent::getParserOutput call the 
"ContentAlterParserOutput" hook
......................................................................


Make BoardContent::getParserOutput call the "ContentAlterParserOutput" hook

Like AbstractContent does.
Untested.

Bug: T160274
Change-Id: Ic30b1f19956aa7ea89ab4c48673399d7310b6fdd
---
M includes/Content/BoardContent.php
1 file changed, 4 insertions(+), 0 deletions(-)

Approvals:
  Bartosz Dziewoński: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/includes/Content/BoardContent.php 
b/includes/Content/BoardContent.php
index e5cad4e..9b295b6 100644
--- a/includes/Content/BoardContent.php
+++ b/includes/Content/BoardContent.php
@@ -11,6 +11,7 @@
 use Flow\Model\UUID;
 use Flow\View;
 use Flow\WorkflowLoaderFactory;
+use Hooks;
 use OutputPage;
 use ParserOptions;
 use ParserOutput;
@@ -164,6 +165,7 @@
                ParserOptions $options = null,
                $generateHtml = true
        ) {
+               // TODO: This should also call the "ContentGetParserOutput" hook
                if ( $generateHtml ) {
                        try {
                                global $wgUser;
@@ -192,6 +194,8 @@
                $updater = Container::get( 'reference.updater.links-tables' );
                $updater->mutateParserOutput( $title, $parserOutput );
 
+               Hooks::run( 'ContentAlterParserOutput', [ $this, $title, 
$parserOutput ] );
+
                return $parserOutput;
        }
 

-- 
To view, visit https://gerrit.wikimedia.org/r/379294
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: Ic30b1f19956aa7ea89ab4c48673399d7310b6fdd
Gerrit-PatchSet: 2
Gerrit-Project: mediawiki/extensions/Flow
Gerrit-Branch: master
Gerrit-Owner: Hoo man <[email protected]>
Gerrit-Reviewer: Aude <[email protected]>
Gerrit-Reviewer: Bartosz Dziewoński <[email protected]>
Gerrit-Reviewer: Catrope <[email protected]>
Gerrit-Reviewer: Jforrester <[email protected]>
Gerrit-Reviewer: Liuxinyu970226 <[email protected]>
Gerrit-Reviewer: Mattflaschen <[email protected]>
Gerrit-Reviewer: Thiemo Mättig (WMDE) <[email protected]>
Gerrit-Reviewer: jenkins-bot <>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to