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:
@@ -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
|
||||
|
Reference in New Issue
Block a user