NOISSUE, trivial code change.

This commit is contained in:
ngleader 2013-11-25 21:29:51 +09:00
parent 34c7b68c89
commit c30a6be738
2 changed files with 14 additions and 18 deletions

View file

@ -54,6 +54,7 @@ function pointLevelIconTrans($matches)
$level_icon = sprintf('%smodules/point/icons/%s/%d.gif', Context::getRequestUri(), $config->level_icon, $level);
// Get per to go to the next level if not a top level
$per = NULL;
if($level < $config->max_level)
{
$next_point = $config->level_step[$level + 1];
@ -68,7 +69,7 @@ function pointLevelIconTrans($matches)
$title = sprintf('%s:%s%s%s, %s:%s/%s', Context::getLang('point'), $point, $config->point_name, $per ? ' (' . $per . ')' : '', Context::getLang('level'), $level, $config->max_level);
$alt = sprintf('[%s:%s]', Context::getLang('level'), $level);
$GLOBALS['_pointLevelIcon'][$member_srl] = sprintf('<img src="%s" alt="%s" title="%s" style="vertical-align:middle; margin-right:3px;" />', $level_icon, $alt, $title);
$GLOBALS['_pointLevelIcon'][$member_srl] = sprintf('<img src="%s" alt="%s" title="%s" class="xe_point_level_icon" style="vertical-align:middle;margin-right:3px;" />', $level_icon, $alt, $title);
}
$text = $GLOBALS['_pointLevelIcon'][$member_srl];