mirror of
https://github.com/e107inc/e107.git
synced 2025-08-21 13:52:35 +02:00
Fix all PHP 8.0 test failures
This commit is contained in:
@@ -227,7 +227,7 @@ class news_shortcodes extends e_shortcode
|
||||
<li><a href="'.$url.'">'.e107::getParser()->toHTML($caption,false,'defs').'</a></li>
|
||||
</ul>';
|
||||
|
||||
if(BOOTSTRAP === 4)
|
||||
if(defined('BOOTSTRAP') && BOOTSTRAP === 4)
|
||||
{
|
||||
$text = '<a class="pager-button btn btn-primary hidden-print" href="'.$url.'">'.e107::getParser()->toHTML($caption,false,'defs').'</a>';
|
||||
}
|
||||
|
@@ -166,7 +166,7 @@ class cpage_shortcodes extends e_shortcode
|
||||
|
||||
if(e107::getPref('comments_disabled') == 0 && !$comflag)
|
||||
{
|
||||
if(BOOTSTRAP)
|
||||
if(defined('BOOTSTRAP') && BOOTSTRAP)
|
||||
{
|
||||
return e107::getMessage()->addInfo(LAN_PAGE_17)->render();
|
||||
}
|
||||
|
@@ -13,7 +13,7 @@
|
||||
|
||||
class sitelinks_alt
|
||||
{
|
||||
function sitelinks_alt_shortcode($parm)
|
||||
static function sitelinks_alt_shortcode($parm)
|
||||
{
|
||||
|
||||
$params = explode('+', $parm);
|
||||
@@ -95,7 +95,7 @@ class sitelinks_alt
|
||||
|
||||
}
|
||||
|
||||
function adnav_cat($cat_title, $cat_link, $cat_img, $cat_id = FALSE, $cat_open = FALSE)
|
||||
static function adnav_cat($cat_title, $cat_link, $cat_img, $cat_id = FALSE, $cat_open = FALSE)
|
||||
{
|
||||
$tp = e107::getParser();
|
||||
|
||||
@@ -128,7 +128,7 @@ class sitelinks_alt
|
||||
return $text;
|
||||
}
|
||||
|
||||
function adnav_main($cat_title, $cat_link, $cat_img, $cat_id = FALSE, $params, $cat_open = FALSE)
|
||||
static function adnav_main($cat_title, $cat_link, $cat_img, $cat_id = FALSE, $params, $cat_open = FALSE)
|
||||
{
|
||||
$tp = e107::getParser();
|
||||
|
||||
@@ -176,7 +176,7 @@ class sitelinks_alt
|
||||
return $text;
|
||||
}
|
||||
|
||||
function render_sub($linklist, $id, $params, $icon)
|
||||
static function render_sub($linklist, $id, $params, $icon)
|
||||
{
|
||||
$tp = e107::getParser();
|
||||
|
||||
|
Reference in New Issue
Block a user