From 937d5cffcc492b350e977ebaee741ab0e0679e6d Mon Sep 17 00:00:00 2001 From: Jack Phoenix Date: Thu, 23 Nov 2017 19:00:27 +0200 Subject: [PATCH] Pass the amount of hidden categories as a parameter to the hidden-categories i18n message Bug: T178655 Change-Id: Iade5e2af18529b8ebd9e26f45819fd77f549db20 --- TimelessTemplate.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/TimelessTemplate.php b/TimelessTemplate.php index d035e3b..ec12d45 100644 --- a/TimelessTemplate.php +++ b/TimelessTemplate.php @@ -771,7 +771,11 @@ class TimelessTemplate extends BaseTemplate { $catList .= $this->getCatList( $normalCats, 'catlist-normal', 'categories' ); } if ( $hiddenCount ) { - $catList .= $this->getCatList( $hiddenCats, 'catlist-hidden', 'hidden-categories' ); + $catList .= $this->getCatList( + $hiddenCats, + 'catlist-hidden', + [ 'hidden-categories', $hiddenCount ] + ); } } } @@ -787,7 +791,7 @@ class TimelessTemplate extends BaseTemplate { * * @param array $list * @param string $id - * @param string $message + * @param string|array $message i18n message name or an array of [ message name, params ] * * @return string html */