1
0
Fork 0

allow hidden comments phrase to be accessed separately as number and text

This commit is contained in:
Zach Prezkuta 2012-09-19 21:31:26 -06:00
commit da7c5b19b1
3 changed files with 6 additions and 0 deletions

View file

@ -685,6 +685,8 @@ function prepare_threads_body($a, $items, $cmnt_tpl, $page_writeable, $mode, $pr
$item_result = $arr['output'];
if($firstcollapsed) {
$item_result['num_comments'] = sprintf( tt('%d comment','%d comments',$total_children),$total_children );
$item_result['hidden_comments_num'] = $total_children;
$item_result['hidden_comments_text'] = tt('comment', 'comments', $total_children);
$item_result['hide_text'] = t('show more');
}