Skip to content

Commit

Permalink
#5079 RSS feed fatal error in PHP 8.1
Browse files Browse the repository at this point in the history
  • Loading branch information
CaMer0n committed Nov 16, 2023
1 parent e2527d5 commit d50f3c7
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions e107_plugins/rss_menu/rss.php
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down Expand Up @@ -153,7 +157,7 @@

$repl = array("<br /><br /><a href='".e_REQUEST_SELF."'>", "</a>");
$message = str_replace(array("[","]"), $repl, RSS_LAN_ERROR_1);
$ns->tablerender('', $message);
e107::getRender()->tablerender('', $message);

require_once(FOOTERF);
exit;
Expand Down Expand Up @@ -618,7 +622,7 @@ function buildRss($rss_title)
<title>".$tp->toRss($rss_title)."</title>
<link>".$pref['siteurl']."</link>
<description>".$tp->toRss($pref['sitedescription'])."</description>
<dc:language>".CORE_LC.(defined("CORE_LC2") ? "-".CORE_LC2 : "")."</dc:language>
<dc:language>".defset('CORE_LC').(defined("CORE_LC2") ? "-".CORE_LC2 : "")."</dc:language>
<dc:date>".$this->get_iso_8601_date($time). "</dc:date>
<dc:creator>".$this->nospam($pref['siteadminemail'])."</dc:creator>
<admin:generatorAgent rdf:resource=\"https://e107.org\" />
Expand Down

0 comments on commit d50f3c7

Please sign in to comment.