1
0
mirror of https://github.com/e107inc/e107.git synced 2025-07-25 17:01:43 +02:00

Rss - Fixed typo causing RSS to return html page instead of feed.

This commit is contained in:
Cameron
2015-04-08 16:55:05 -07:00
parent 74e8551cb4
commit 1078c9c84c

View File

@@ -77,7 +77,7 @@ elseif (e_QUERY)
// List available rss feeds
if (!empty($rss_type))
if (empty($rss_type))
{ // Display list of all feeds
require_once(HEADERF);
// 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
// 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]) )
{
$content_type = $conversion[$content_type];
@@ -218,7 +218,7 @@ class rssCreate
case 1:
$path = e_PLUGIN."news/e_rss.php";
$this->contentType = "news";
break;;
break;
case 2:
$path='';
$this -> contentType = "articles";