]> git.wh0rd.org - tt-rss.git/commitdiff
opml: some indenting stuff
authorAndrew Dolgov <fox@madoka.volgo-balt.ru>
Wed, 15 Aug 2012 11:13:26 +0000 (15:13 +0400)
committerAndrew Dolgov <fox@madoka.volgo-balt.ru>
Wed, 15 Aug 2012 11:13:26 +0000 (15:13 +0400)
opml.php

index eab0b7b7d453c0e38c747bc755728c7706d5a108..79d1a2e7a4359530ab95d0fd0baf2112f7d35ace 100644 (file)
--- a/opml.php
+++ b/opml.php
                                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;
                           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>";