1
0
mirror of https://github.com/e107inc/e107.git synced 2025-07-31 20:00:37 +02:00

Fix all PHP 8.0 test failures

This commit is contained in:
Nick Liu
2020-11-27 17:00:32 +01:00
parent 072c1b3a90
commit f256b924ce
21 changed files with 103 additions and 34 deletions

View File

@@ -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();