Commit d70f05b5 by pupi1985

Replaced number_format in themes

parent ece829bf
......@@ -34,6 +34,8 @@ class qa_html_theme extends qa_html_theme_base
public function logged_in()
{
require_once QA_INCLUDE_DIR . 'app/format.php';
if (qa_is_logged_in()) // output user avatar to login bar
$this->output(
'<div class="qa-logged-in-avatar">',
......@@ -52,7 +54,7 @@ class qa_html_theme extends qa_html_theme_base
$pointshtml=($userpoints==1)
? qa_lang_html_sub('main/1_point', '1', '1')
: qa_lang_html_sub('main/x_points', qa_html(number_format($userpoints)));
: qa_lang_html_sub('main/x_points', qa_html(qa_format_number($userpoints)));
$this->output(
'<span class="qa-logged-in-points">',
......
......@@ -244,9 +244,11 @@ class qam_snow_theme
*/
private function user_points()
{
require_once QA_INCLUDE_DIR . 'app/format.php';
if (qa_is_logged_in()) {
$userpoints = qa_get_logged_in_points();
$pointshtml = ($userpoints == 1) ? qa_lang_html_sub('main/1_point', '1', '1') : qa_html(number_format($userpoints));
$pointshtml = ($userpoints == 1) ? qa_lang_html_sub('main/1_point', '1', '1') : qa_html(qa_format_number($userpoints));
$points = '<DIV CLASS="qam-logged-in-points">' . $pointshtml . '</DIV>';
return $points;
......
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