Umherirrender has uploaded a new change for review. https://gerrit.wikimedia.org/r/174201
Change subject: Use Parser::SFH_OBJECT_ARGS class const ...................................................................... Use Parser::SFH_OBJECT_ARGS class const Instead of the global const Change-Id: Ib0bf124ae8395beb09eecff38354ec885b79f9bc --- M Carp.php 1 file changed, 2 insertions(+), 2 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/Carp refs/changes/01/174201/1 diff --git a/Carp.php b/Carp.php index 02df8a1..d02c2a6 100644 --- a/Carp.php +++ b/Carp.php @@ -101,8 +101,8 @@ @code class Example { static function onParserFirstCallInit( &$parser ) { - $parser->setFunctionHook( 'example', 'Example::hookExample', SFH_OBJECT_ARGS ); - // Note the flag SFH_OBJECT_ARGS -- it is important. We need a frame to unwind call stack. + $parser->setFunctionHook( 'example', 'Example::hookExample', Parser::SFH_OBJECT_ARGS ); + // Note the flag Parser::SFH_OBJECT_ARGS -- it is important. We need a frame to unwind call stack. return true; } static public function hookExample( $parser, $frame, $args ) { -- To view, visit https://gerrit.wikimedia.org/r/174201 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: Ib0bf124ae8395beb09eecff38354ec885b79f9bc Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/Carp Gerrit-Branch: master Gerrit-Owner: Umherirrender <umherirrender_de...@web.de> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits