1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-06 14:46:56 +02:00

PHP8 Fixes. RSS speed improvement.

This commit is contained in:
Cameron
2021-01-05 16:40:01 -08:00
parent 53866fd6b9
commit f0ce3ac4a9
5 changed files with 82 additions and 65 deletions

View File

@@ -21,6 +21,11 @@ Plugins should use an e_rss.php file in their plugin folder
*/
if (!defined('e107_INIT'))
{
if(!empty($_GET) || !empty($argv))
{
$_E107['minimal'] = true;
}
require_once('../../class2.php');
}
@@ -72,7 +77,6 @@ else
$topic_id = false;
}
// List available rss feeds
if (empty($rss_type))
{
@@ -693,7 +697,7 @@ class rssCreate
<contributor>\n
<name>e107</name>\n
</contributor>\n
<generator uri='http://e107.org/' version='".e_VERSION."'>e107</generator>\n";
<generator uri='http://e107.org/' version='".defset('e_VERSION')."'>e107</generator>\n";
//<icon>/icon.jpg</icon>\n
echo "
<logo>".(strpos(SITEBUTTON, "http:") !== false ? SITEBUTTON : SITEURL.str_replace("../", "", SITEBUTTON))."</logo>\n