Physikerwelt has uploaded a new change for review. https://gerrit.wikimedia.org/r/178507
Change subject: Avoid call to method that could be undefined ...................................................................... Avoid call to method that could be undefined Change-Id: Ia0514849b57f0e5bc2e8781f4788cff39bec0f79 --- M SpecialMathShowImage.php 1 file changed, 1 insertion(+), 1 deletion(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/Math refs/changes/07/178507/1 diff --git a/SpecialMathShowImage.php b/SpecialMathShowImage.php index 5e70590..604f7f2 100644 --- a/SpecialMathShowImage.php +++ b/SpecialMathShowImage.php @@ -90,7 +90,7 @@ $success = $this->renderer->render(); } if ( $success ) { - if ( $this->mode == MW_MATH_PNG ) { + if ( $this->mode == MW_MATH_PNG && method_exists( $this, "getPng" ) ) { // Workaround for bugfix for Bug 56769 if ( !isset( $wgHooks['ParserAfterParse']['FlushMathBackend'] ) ) { // saves the PNG-file -- To view, visit https://gerrit.wikimedia.org/r/178507 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: Ia0514849b57f0e5bc2e8781f4788cff39bec0f79 Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/Math Gerrit-Branch: master Gerrit-Owner: Physikerwelt <w...@physikerwelt.de> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits