1
0
mirror of https://github.com/e107inc/e107.git synced 2025-07-31 03:40:37 +02:00

Issue #6 Removed HTML from RSS_LAN_ERROR_1 and RSS_LAN_ERROR_3

This commit is contained in:
Cameron
2015-09-13 11:24:22 -07:00
parent d73fed0ed6
commit 4d4ab7653d
2 changed files with 5 additions and 3 deletions

View File

@@ -45,9 +45,9 @@ define("RSS_LAN_ADMINMENU_1", "RSS Options");
define("RSS_LAN_ADMINMENU_2", "Listing");
define("RSS_LAN_ADMINMENU_4", "Import");
define("RSS_LAN_ERROR_1", "This is not a valid rss feed<br /><br /><a href='".e_SELF."'><< return to rss feed list</a>");
define("RSS_LAN_ERROR_1", "This is not a valid rss feed.[br][br][Return to rss feed list]");
define("RSS_LAN_ERROR_2", "Your e107_config.php file or your language files contain spaces or  characters before the &lt;? characters. You should remove this with a non-utf8 text-editor if you wish to have a valid RSS feed.");
define("RSS_LAN_ERROR_3", "No rss feeds are present yet<br />please use the import feature to import available rss feeds or create a rss feed manually.");
define("RSS_LAN_ERROR_3", "No rss feeds are present yet[br]please use the import feature to import available rss feeds or create a rss feed manually.");
define("RSS_LAN_ERROR_4", "No rss feeds are available yet");
define("RSS_LAN_ERROR_5", "This rss entry does not exist");
define("RSS_LAN_ERROR_6", "There are no rss feeds to import");

View File

@@ -135,7 +135,9 @@ if(!$sql->select('rss', '*', "rss_class!=2 AND rss_url='".$content_type."' ".$ch
if(!$sql->select('rss', '*', "rss_class!=2 AND rss_url='".$content_type."' ".$check_topic." AND rss_limit>0 "))
{
require_once(HEADERF);
$ns->tablerender('', RSS_LAN_ERROR_1);
$repl = array("<a href='".e_REQUEST_SELF."'>", "</a>");
$message = str_replace(array("[","]"), $repl, RSS_LAN_ERROR_1);
$ns->tablerender('', $message);
require_once(FOOTERF);
exit;
}