Commit 2eae9df6 by pupi1985

Added compact numbers in app/favorites.php

parent fbc8c141
...@@ -138,7 +138,7 @@ ...@@ -138,7 +138,7 @@
$ranking['items'][] = array( $ranking['items'][] = array(
'avatar' => $avatarhtml, 'avatar' => $avatarhtml,
'label' => $usershtml[$user['userid']], 'label' => $usershtml[$user['userid']],
'score' => qa_html(qa_format_number($user['points'])), 'score' => qa_html(qa_format_number($user['points'], 1, true)),
'raw' => $user, 'raw' => $user,
); );
} }
...@@ -163,7 +163,7 @@ ...@@ -163,7 +163,7 @@
foreach ($tags as $tag) { foreach ($tags as $tag) {
$ranking['items'][] = array( $ranking['items'][] = array(
'label' => qa_tag_html($tag['word'], false, true), 'label' => qa_tag_html($tag['word'], false, true),
'count' => qa_html(qa_format_number($tag['tagcount'])), 'count' => qa_html(qa_format_number($tag['tagcount'], 1, true)),
); );
} }
...@@ -187,7 +187,7 @@ ...@@ -187,7 +187,7 @@
$cat_url = qa_path_html( 'questions/' . implode( '/', array_reverse(explode('/', $category['backpath'])) ) ); $cat_url = qa_path_html( 'questions/' . implode( '/', array_reverse(explode('/', $category['backpath'])) ) );
$cat_anchor = $category['qcount'] == 1 $cat_anchor = $category['qcount'] == 1
? qa_lang_html_sub('main/1_question', '1', '1') ? qa_lang_html_sub('main/1_question', '1', '1')
: qa_lang_html_sub('main/x_questions', qa_format_number($category['qcount'])); : qa_lang_html_sub('main/x_questions', qa_format_number($category['qcount'], 1, true));
$cat_descr = strlen($category['content']) ? qa_html(' - '.$category['content']) : ''; $cat_descr = strlen($category['content']) ? qa_html(' - '.$category['content']) : '';
$nav_list_categories['nav'][$category['categoryid']] = array( $nav_list_categories['nav'][$category['categoryid']] = array(
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment