Hoo man has uploaded a new change for review. ( 
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, 3 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/Flow 
refs/changes/94/379294/1

diff --git a/includes/Content/BoardContent.php 
b/includes/Content/BoardContent.php
index e5cad4e..e5541d9 100644
--- a/includes/Content/BoardContent.php
+++ b/includes/Content/BoardContent.php
@@ -164,6 +164,7 @@
                ParserOptions $options = null,
                $generateHtml = true
        ) {
+               // TODO: This should also call the "ContentGetParserOutput" hook
                if ( $generateHtml ) {
                        try {
                                global $wgUser;
@@ -192,6 +193,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: newchange
Gerrit-Change-Id: Ic30b1f19956aa7ea89ab4c48673399d7310b6fdd
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Flow
Gerrit-Branch: master
Gerrit-Owner: Hoo man <[email protected]>

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

Reply via email to