From: Andrew Dolgov Date: Fri, 2 Dec 2005 08:24:59 +0000 (+0100) Subject: further updates to xml import ui X-Git-Tag: schema_feature_freeze_for_1.1~5 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=8fb9aceee28f33592104ae7305ff1d2775889813;p=tt-rss.git further updates to xml import ui --- diff --git a/xml-import.php b/xml-import.php index 4b1cd1bc..d5081d64 100644 --- a/xml-import.php +++ b/xml-import.php @@ -34,7 +34,7 @@ function import_article($link, $data) { - print "Processing article ".$data["title"]. + print "

Article: ".$data["title"]. " (".$data["feed_title"].")
"; $owner_uid = $_SESSION["uid"]; @@ -55,7 +55,7 @@ if (db_num_rows($result) == 0) { - print "Not found, adding base entry...
"; + print "Adding base entry...
"; $entry_title = db_escape_string($data["title"]); $entry_guid = db_escape_string($data["guid"]); @@ -138,9 +138,9 @@

- -
+ +

Import XMLDB

@@ -178,8 +178,10 @@ $article_data[$child->tagname()] = $child->get_content(); } - import_article($link, $article_data); + $is_imported = import_article($link, $article_data); } + + print "

Return to preferences"; } else { print "Error: could not parse document."; }