Skip to content

Commit

Permalink
[K6.0] If ranks are displayed by CCS little glitch in profile and errors
Browse files Browse the repository at this point in the history
  • Loading branch information
xillibit committed Mar 9, 2023
1 parent 07bb333 commit 2829ef4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions src/libraries/kunena/src/User/KunenaUser.php
Expand Up @@ -1932,19 +1932,19 @@ public function rankCss(object $rank, int $catid): string
$stylefourth = '';
$stylelast = '';

if ($rank->rank_title == 'COM_KUNENA_SAMPLEDATA_RANK1') {
if ($rank->rankTitle == 'COM_KUNENA_SAMPLEDATA_RANK1') {
$stylesecond = 'style="color:#e8f7ff;"';
$stylethird = 'style="color:#e8f7ff;"';
$stylefourth = 'style="color:#e8f7ff;"';
$stylelast = 'style="color:#e8f7ff;"';
} elseif ($rank->rank_title == 'COM_KUNENA_SAMPLEDATA_RANK2') {
} elseif ($rank->rankTitle == 'COM_KUNENA_SAMPLEDATA_RANK2') {
$stylethird = 'style="color:#e8f7ff;"';
$stylefourth = 'style="color:#e8f7ff;"';
$stylelast = 'style="color:#e8f7ff;"';
} elseif ($rank->rank_title == 'COM_KUNENA_SAMPLEDATA_RANK3') {
} elseif ($rank->rankTitle == 'COM_KUNENA_SAMPLEDATA_RANK3') {
$stylefourth = 'style="color:#e8f7ff;"';
$stylelast = 'style="color:#e8f7ff;"';
} elseif ($rank->rank_title == 'COM_KUNENA_SAMPLEDATA_RANK4') {
} elseif ($rank->rankTitle == 'COM_KUNENA_SAMPLEDATA_RANK4') {
$stylelast = 'style="color:#e8f7ff;"';
} else {
// Nothing to do here
Expand Down
4 changes: 2 additions & 2 deletions src/site/template/aurelia/layouts/widget/ranks/default.php
Expand Up @@ -14,8 +14,8 @@

if ($this->topicicontype == 'fa') :
?>
<li class="kwho-<?php echo $this->type ?>">
<i class="fas fa-circle"></i><i class="fas fa-circle" <?php echo $this->stylesecond ?>></i><i class="fas fa-circle" <?php echo $this->stylethird ?>></i><i class="fas fa-circle" <?php echo $this->stylefourth ?>></i><i class="fas fa-circle" <?php echo $this->stylelast ?>></i><?php echo $this->rank->rank_special ? '<i class="fas fa-circle"></i>' : '' ?>
<li class="kwho-<?php echo $this->type ?> list-group-item">
<i class="fas fa-circle"></i><i class="fas fa-circle" <?php echo $this->stylesecond ?>></i><i class="fas fa-circle" <?php echo $this->stylethird ?>></i><i class="fas fa-circle" <?php echo $this->stylefourth ?>></i><i class="fas fa-circle" <?php echo $this->stylelast ?>></i><?php echo $this->rank->rankSpecial ? '<i class="fas fa-circle"></i>' : '' ?>
</li>
<?php else : ?>
<li class="kwho-<?php echo $this->type ?>">
Expand Down

0 comments on commit 2829ef4

Please sign in to comment.