From 649c292f2df5cd2d24122d0c8838163c31f56b59 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Wed, 15 Aug 2001 12:30:26 +0000 Subject: - import.module: + fixed a few visual glitches: '\n' won't be stripped anymore which makes most of the new/feeds 'render' better. --- modules/aggregator/aggregator.module | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'modules/aggregator/aggregator.module') diff --git a/modules/aggregator/aggregator.module b/modules/aggregator/aggregator.module index b7f263439..6bcc96825 100644 --- a/modules/aggregator/aggregator.module +++ b/modules/aggregator/aggregator.module @@ -411,7 +411,7 @@ function import_tag() { $output .= "\n"; $output .= " \n"; while ($item = db_fetch_object($result)) { - $output .= " \n"; + $output .= " \n"; } $output .= "
timefeeditem
". format_date($item->timestamp, "custom", "m/d/y") ."
".format_date($item->timestamp, "custom", "H:i") ."
fid\">". check_output($item->feed) ."link) ."\">". check_output($item->title) ."". ($item->description ? "
". check_output($item->description) ."" : "") ."
iid]\" value=\"". check_form($item->attributes) ."\" size=\"50\" />
". format_date($item->timestamp, "custom", "m/d/y") ."
".format_date($item->timestamp, "custom", "H:i") ."
fid\">". check_output($item->feed) ."link) ."\">". check_output($item->title) ."". ($item->description ? "
". check_output($item->description, 1) ."" : "") ."
iid]\" value=\"". check_form($item->attributes) ."\" size=\"50\" />
\n"; $output .= "\n"; @@ -513,7 +513,7 @@ function import_page_last() { $output .= "". format_url($item->link, $item->title) ." · fid\">$item->ftitle". $theme->links($links) ."\n"; } if ($item->description) { - $output .= "
". check_output($item->description) ."

"; + $output .= "
". check_output($item->description, 1) ."

"; } unset($links); @@ -532,7 +532,7 @@ function import_page_feed($fid) { $feed = db_fetch_object(db_query("SELECT * FROM feed WHERE fid = '". check_input($fid) ."'")); $header .= "

". t("Website") .":

". format_url($feed->link) ."

"; - $header .= "

". t("Description") .":

". check_output($feed->description) ."

"; + $header .= "

". t("Description") .":

". check_output($feed->description, 1) ."

"; $header .= "

". t("Last update") .":

". format_interval(time() - $feed->timestamp) ." ". t("ago") ."url\">image("xml.gif") ."\" width=\"36\" height=\"14\" align=\"right\" border=\"0\" />

\n"; $result = db_query("SELECT * FROM item WHERE fid = '". check_input($fid) ."' ORDER BY iid DESC LIMIT ". variable_get("import_page_limit", 75)); @@ -546,7 +546,7 @@ function import_page_feed($fid) { $output .= "". format_url($item->link, $item->title) ."". $theme->links($links) ."\n"; } if ($item->description) { - $output .= "
". check_output($item->description) ."

"; + $output .= "
". check_output($item->description, 1) ."

"; } unset($links); @@ -581,7 +581,7 @@ function import_page_bundle($bid) { $output .= "". format_url($item->link, $item->title) ." · fid\">$item->ftitle". $theme->links($links) ."\n"; } if ($item->description) { - $output .= "
". check_output($item->description) ."

"; + $output .= "
". check_output($item->description, 1) ."

"; } unset($links); @@ -602,7 +602,7 @@ function import_page_sources() { while ($feed = db_fetch_object($result)) { $output .= format_url("module.php?mod=import&op=feed&id=$feed->fid", $feed->title); - $output .= "

". check_output($feed->description) ."

"; + $output .= "

". check_output($feed->description, 1) ."

"; } $output .= "image("xml.gif") ."\" width=\"36\" height=\"14\" align=\"right\" border=\"0\" />
\n"; -- cgit v1.2.3