From 1078c9c84c40b524367fc59442a137d5ec36bc7b Mon Sep 17 00:00:00 2001 From: Cameron Date: Wed, 8 Apr 2015 16:55:05 -0700 Subject: [PATCH] Rss - Fixed typo causing RSS to return html page instead of feed. --- e107_plugins/rss_menu/rss.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/e107_plugins/rss_menu/rss.php b/e107_plugins/rss_menu/rss.php index 0686f29b7..1b26507eb 100644 --- a/e107_plugins/rss_menu/rss.php +++ b/e107_plugins/rss_menu/rss.php @@ -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";