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.module | 12 ++++++------
modules/aggregator/aggregator.module | 12 ++++++------
modules/import.module | 12 ++++++------
3 files changed, 18 insertions(+), 18 deletions(-)
(limited to 'modules')
diff --git a/modules/aggregator.module b/modules/aggregator.module
index b7f263439..6bcc96825 100644
--- a/modules/aggregator.module
+++ b/modules/aggregator.module
@@ -411,7 +411,7 @@ function import_tag() {
$output .= "\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") .":
\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";
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";
@@ -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") .":
\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";
diff --git a/modules/import.module b/modules/import.module
index b7f263439..6bcc96825 100644
--- a/modules/import.module
+++ b/modules/import.module
@@ -411,7 +411,7 @@ function import_tag() {
$output .= "\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") .":
\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