From d50f3c7c61457265e6d2661032a0f13f5a276e3e Mon Sep 17 00:00:00 2001 From: camer0n Date: Thu, 16 Nov 2023 13:50:10 -0800 Subject: [PATCH] #5079 RSS feed fatal error in PHP 8.1 --- e107_plugins/rss_menu/rss.php | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/e107_plugins/rss_menu/rss.php b/e107_plugins/rss_menu/rss.php index 9463870750..0c9282954d 100644 --- a/e107_plugins/rss_menu/rss.php +++ b/e107_plugins/rss_menu/rss.php @@ -23,7 +23,11 @@ { if(!empty($_GET) || !empty($argv)) { - $_E107['minimal'] = true; + $_E107['no_online'] = true; + $_E107['no_forceuserupdate'] = true; + $_E107['no_menus'] = true; + $_E107['allow_guest'] = true; // run while in members-only mode. + $_E107['no_maintenance'] = true; } require_once(__DIR__.'/../../class2.php'); @@ -153,7 +157,7 @@ $repl = array("

", ""); $message = str_replace(array("[","]"), $repl, RSS_LAN_ERROR_1); - $ns->tablerender('', $message); + e107::getRender()->tablerender('', $message); require_once(FOOTERF); exit; @@ -618,7 +622,7 @@ function buildRss($rss_title) ".$tp->toRss($rss_title)." ".$pref['siteurl']." ".$tp->toRss($pref['sitedescription'])." - ".CORE_LC.(defined("CORE_LC2") ? "-".CORE_LC2 : "")." + ".defset('CORE_LC').(defined("CORE_LC2") ? "-".CORE_LC2 : "")." ".$this->get_iso_8601_date($time). " ".$this->nospam($pref['siteadminemail'])."