jenkins-bot has submitted this change and it was merged.
Change subject: Add required arguments to ParserAfterParse hook call
......................................................................
Add required arguments to ParserAfterParse hook call
* add missing global $wgHooks
Bug: T99212
Change-Id: Ia8993e55a4abd6580504e422eb84ebd4ed09544c
---
M MathTexvc.php
1 file changed, 2 insertions(+), 1 deletion(-)
Approvals:
Aaron Schulz: Looks good to me, approved
jenkins-bot: Verified
diff --git a/MathTexvc.php b/MathTexvc.php
index b1e9662..f4d26e3 100644
--- a/MathTexvc.php
+++ b/MathTexvc.php
@@ -403,10 +403,11 @@
}
public function getPng() {
+ global $wgHooks;
// Workaround for bugfix for Bug 56769
if ( !isset( $wgHooks['ParserAfterParse']['FlushMathBackend'] )
) {
// saves the PNG-file
- Hooks::run( 'ParserAfterParse' );
+ Hooks::run( 'ParserAfterParse', array( new Parser(),
'', new StripState( '' ) ) );
}
$backend = $this->getBackend();
return $backend->getFileContents( array( 'src' =>
$this->getHashPath() . "/" . $this->getHash() . '.png' ) );
--
To view, visit https://gerrit.wikimedia.org/r/211401
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: Ia8993e55a4abd6580504e422eb84ebd4ed09544c
Gerrit-PatchSet: 4
Gerrit-Project: mediawiki/extensions/Math
Gerrit-Branch: master
Gerrit-Owner: Physikerwelt <[email protected]>
Gerrit-Reviewer: Aaron Schulz <[email protected]>
Gerrit-Reviewer: Krinkle <[email protected]>
Gerrit-Reviewer: Mobrovac <[email protected]>
Gerrit-Reviewer: Physikerwelt <[email protected]>
Gerrit-Reviewer: TheDJ <[email protected]>
Gerrit-Reviewer: jenkins-bot <>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits