Skip to content

Commit

Permalink
[K6.2] Some deprecated variables with Php 8.2 when using ranck by CSS
Browse files Browse the repository at this point in the history
  • Loading branch information
xillibit committed Oct 16, 2023
1 parent 4672f49 commit ecb0186
Show file tree
Hide file tree
Showing 3 changed files with 73 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/libraries/kunena/src/User/KunenaUser.php
Original file line number Diff line number Diff line change
Expand Up @@ -1699,9 +1699,11 @@ public function getRank($catid = 0, $type = null, $special = null)
$rank->rankImage = 'rankadmin.gif';

foreach (self::$_ranks as $cur) {
if ($cur->rankSpecial == 1 && strstr($cur->rankImage, 'admin')) {
$rank = $cur;
break;
if (!empty($cur->rankImage)) {
if ($cur->rankSpecial == 1 && strstr($cur->rankImage, 'admin')) {
$rank = $cur;
break;
}
}
}
break;
Expand Down
40 changes: 40 additions & 0 deletions src/site/src/Layout/Widget/WidgetRanks.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
<?php

/**
* Kunena Component
*
* @package Kunena.Site
* @subpackage Layout.widget
*
* @copyright Copyright (C) 2008 - 2023 Kunena Team. All rights reserved.
* @license https://www.gnu.org/copyleft/gpl.html GNU/GPL
* @link https://www.kunena.org
**/

namespace Kunena\Forum\Site\Layout\Widget;

defined('_JEXEC') or die;

use Kunena\Forum\Libraries\Layout\KunenaLayout;

/**
* KunenaLayoutTopicEditEditor
*
* @since K6.2
*/
class WidgetRanks extends KunenaLayout
{
public $type;

public $topicicontype;

public $rank;

public $stylesecond;

public $stylethird;

public $stylefourth;

public $stylelast;
}
28 changes: 28 additions & 0 deletions src/site/src/Layout/Widget/WidgetSocial.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
<?php

/**
* Kunena Component
*
* @package Kunena.Site
* @subpackage Layout.widget
*
* @copyright Copyright (C) 2008 - 2023 Kunena Team. All rights reserved.
* @license https://www.gnu.org/copyleft/gpl.html GNU/GPL
* @link https://www.kunena.org
**/

namespace Kunena\Forum\Site\Layout\Widget;

defined('_JEXEC') or die;

use Kunena\Forum\Libraries\Layout\KunenaLayout;

/**
* KunenaLayoutTopicEditEditor
*
* @since K6.2
*/
class WidgetSocial extends KunenaLayout
{
public $ktemplate;
}

0 comments on commit ecb0186

Please sign in to comment.