Pass the amount of hidden categories as a parameter to the hidden-categories i18n message

Bug: T178655
Change-Id: Iade5e2af18529b8ebd9e26f45819fd77f549db20
isekai
Jack Phoenix 7 years ago
parent 8e146c4d6c
commit 937d5cffcc

@ -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
*/

Loading…
Cancel
Save