From 0daa1e82b57aa6dd6bf477bd46f44a92a817cdf2 Mon Sep 17 00:00:00 2001 From: kremsy Date: Wed, 30 Apr 2014 21:44:26 +0200 Subject: [PATCH] maplistkarma fix --- application/core/Maps/MapList.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/application/core/Maps/MapList.php b/application/core/Maps/MapList.php index 1dc5145c..0c9fdc02 100644 --- a/application/core/Maps/MapList.php +++ b/application/core/Maps/MapList.php @@ -426,8 +426,7 @@ class MapList implements ManialinkPageAnswerListener, CallbackListener { $votes = $karmaPlugin->getMapVotes($map); if (is_numeric($karma)) { if($this->maniaControl->settingManager->getSetting($karmaPlugin, $karmaPlugin::SETTING_NEWKARMA)) { - $endKarma = $karma; - + $karmaText = ' ' . round($karma * 100.) . '% (' . $votes['count'] . ')'; } else { $min = 0; $plus = 0; @@ -465,7 +464,7 @@ class MapList implements ManialinkPageAnswerListener, CallbackListener { $karmaLabel->setTextSize(0.9); $karmaLabel->setTextColor('000'); $karmaLabel->setAlign(Control::CENTER, Control::CENTER); - $karmaLabel->setText(' ' . $endKarma . ' (' . $votes['count'] . 'x / ' . round($karma * 100.) . '%)'); + $karmaLabel->setText($karmaText); } }