mirror of
https://github.com/e107inc/e107.git
synced 2025-07-29 02:40:25 +02:00
Rss - Fixed typo causing RSS to return html page instead of feed.
This commit is contained in:
@@ -77,7 +77,7 @@ elseif (e_QUERY)
|
|||||||
|
|
||||||
|
|
||||||
// List available rss feeds
|
// List available rss feeds
|
||||||
if (!empty($rss_type))
|
if (empty($rss_type))
|
||||||
{ // Display list of all feeds
|
{ // Display list of all feeds
|
||||||
require_once(HEADERF);
|
require_once(HEADERF);
|
||||||
// require_once(e_PLUGIN.'rss_menu/rss_template.php'); Already loaded
|
// require_once(e_PLUGIN.'rss_menu/rss_template.php'); Already loaded
|
||||||
@@ -112,7 +112,7 @@ $conversion[12] = 'download';
|
|||||||
|
|
||||||
// Convert certain old urls so we can check the db entries
|
// Convert certain old urls so we can check the db entries
|
||||||
// Rss.php?1.2 (news, rss-2) --> check = news (check conversion table)
|
// Rss.php?1.2 (news, rss-2) --> check = news (check conversion table)
|
||||||
// TODO: legacy stuff still required?
|
|
||||||
if(is_numeric($content_type) && isset($conversion[$content_type]) )
|
if(is_numeric($content_type) && isset($conversion[$content_type]) )
|
||||||
{
|
{
|
||||||
$content_type = $conversion[$content_type];
|
$content_type = $conversion[$content_type];
|
||||||
@@ -218,7 +218,7 @@ class rssCreate
|
|||||||
case 1:
|
case 1:
|
||||||
$path = e_PLUGIN."news/e_rss.php";
|
$path = e_PLUGIN."news/e_rss.php";
|
||||||
$this->contentType = "news";
|
$this->contentType = "news";
|
||||||
break;;
|
break;
|
||||||
case 2:
|
case 2:
|
||||||
$path='';
|
$path='';
|
||||||
$this -> contentType = "articles";
|
$this -> contentType = "articles";
|
||||||
|
Reference in New Issue
Block a user