Seb35 has uploaded a new change for review. ( https://gerrit.wikimedia.org/r/393010 )
Change subject: Fix {{NUMBEROFVIEWS}} in MediaWiki 1.29 ...................................................................... Fix {{NUMBEROFVIEWS}} in MediaWiki 1.29 The function CoreParserFunctions::formatRaw now has a third parameter. Bug: T142127 Change-Id: I982d684618e32333fb63b05a8c8a6379531d2a8b --- M includes/HitCounters.body.php M includes/HitCounters.hooks.php 2 files changed, 6 insertions(+), 3 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/HitCounters refs/changes/10/393010/1 diff --git a/includes/HitCounters.body.php b/includes/HitCounters.body.php index 2f5bd62..173e0c3 100644 --- a/includes/HitCounters.body.php +++ b/includes/HitCounters.body.php @@ -93,7 +93,7 @@ * @SuppressWarnings(PHPMD.UnusedFormalParameter) */ public static function numberOfViews( - Parser &$parser, PPFrame $frame, $args + Parser $parser, PPFrame $frame, $args ) { return self::views(); } @@ -104,7 +104,7 @@ * @SuppressWarnings(PHPMD.UnusedFormalParameter) */ public static function numberOfPageViews( - Parser &$parser, PPFrame $frame, $args + Parser $parser, PPFrame $frame, $args ) { return self::getCount( $frame->title ); } diff --git a/includes/HitCounters.hooks.php b/includes/HitCounters.hooks.php index 1d5105f..e13d5af 100644 --- a/includes/HitCounters.hooks.php +++ b/includes/HitCounters.hooks.php @@ -101,7 +101,10 @@ if ( $magicWord === $magicWordId ) { if ( !$wgDisableCounters ) { $ret = CoreParserFunctions::formatRaw( - call_user_func( $processingFunction, $parser, $frame, null ), null ); + call_user_func( $processingFunction, $parser, $frame, null ), + null, + $parser->getFunctionLang() + ); return true; } else { wfDebugLog( 'HitCounters', 'Counters are disabled!' ); -- To view, visit https://gerrit.wikimedia.org/r/393010 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I982d684618e32333fb63b05a8c8a6379531d2a8b Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/HitCounters Gerrit-Branch: master Gerrit-Owner: Seb35 <se...@seb35.fr> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits