diff options
author | Andrew Dolgov <[email protected]> | 2012-08-15 15:13:26 +0400 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2012-08-15 15:13:26 +0400 |
commit | ac9b1f0772d399f04bf3494e09e22a01af78922e (patch) | |
tree | 27fb341395cb81bbceabe60ee032fa4bc79c6309 /opml.php | |
parent | d3cface62d58aae453899aa5f93a36bd7f35b28d (diff) |
opml: some indenting stuff
Diffstat (limited to 'opml.php')
-rw-r--r-- | opml.php | 28 |
1 files changed, 12 insertions, 16 deletions
@@ -269,20 +269,20 @@ from ttrss_feeds where $feed_cat_qpart AND owner_uid = '$owner_uid' AND $hide_qpart order by order_id, title"); - while ($fline = db_fetch_assoc($feeds_result)) { - $title = htmlspecialchars($fline["title"]); - $url = htmlspecialchars($fline["feed_url"]); - $site_url = htmlspecialchars($fline["site_url"]); + while ($fline = db_fetch_assoc($feeds_result)) { + $title = htmlspecialchars($fline["title"]); + $url = htmlspecialchars($fline["feed_url"]); + $site_url = htmlspecialchars($fline["site_url"]); - if ($site_url) { - $html_url_qpart = "htmlUrl=\"$site_url\""; - } else { - $html_url_qpart = ""; - } - - $out .= "<outline text=\"$title\" xmlUrl=\"$url\" $html_url_qpart/>\n"; + if ($site_url) { + $html_url_qpart = "htmlUrl=\"$site_url\""; + } else { + $html_url_qpart = ""; } + $out .= "<outline text=\"$title\" xmlUrl=\"$url\" $html_url_qpart/>\n"; + } + if ($cat_title) $out .= "</outline>\n"; return $out; @@ -316,14 +316,10 @@ profile IS NULL AND owner_uid = " . $_SESSION["uid"] . " ORDER BY pref_name"); while ($line = db_fetch_assoc($result)) { - $name = $line["pref_name"]; $value = htmlspecialchars($line["value"]); - $out .= "<outline pref-name=\"$name\" value=\"$value\">"; - - $out .= "</outline>"; - + $out .= "<outline pref-name=\"$name\" value=\"$value\"/>"; } $out .= "</outline>"; |