mirror of
https://git.tt-rss.org/fox/tt-rss.git
synced 2025-10-10 18:41:00 +02:00
opml: some indenting stuff
This commit is contained in:
parent
d3cface62d
commit
ac9b1f0772
28
opml.php
28
opml.php
@ -269,20 +269,20 @@
|
|||||||
from ttrss_feeds where $feed_cat_qpart AND owner_uid = '$owner_uid' AND $hide_qpart
|
from ttrss_feeds where $feed_cat_qpart AND owner_uid = '$owner_uid' AND $hide_qpart
|
||||||
order by order_id, title");
|
order by order_id, title");
|
||||||
|
|
||||||
while ($fline = db_fetch_assoc($feeds_result)) {
|
while ($fline = db_fetch_assoc($feeds_result)) {
|
||||||
$title = htmlspecialchars($fline["title"]);
|
$title = htmlspecialchars($fline["title"]);
|
||||||
$url = htmlspecialchars($fline["feed_url"]);
|
$url = htmlspecialchars($fline["feed_url"]);
|
||||||
$site_url = htmlspecialchars($fline["site_url"]);
|
$site_url = htmlspecialchars($fline["site_url"]);
|
||||||
|
|
||||||
if ($site_url) {
|
if ($site_url) {
|
||||||
$html_url_qpart = "htmlUrl=\"$site_url\"";
|
$html_url_qpart = "htmlUrl=\"$site_url\"";
|
||||||
} else {
|
} else {
|
||||||
$html_url_qpart = "";
|
$html_url_qpart = "";
|
||||||
}
|
|
||||||
|
|
||||||
$out .= "<outline text=\"$title\" xmlUrl=\"$url\" $html_url_qpart/>\n";
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$out .= "<outline text=\"$title\" xmlUrl=\"$url\" $html_url_qpart/>\n";
|
||||||
|
}
|
||||||
|
|
||||||
if ($cat_title) $out .= "</outline>\n";
|
if ($cat_title) $out .= "</outline>\n";
|
||||||
|
|
||||||
return $out;
|
return $out;
|
||||||
@ -316,14 +316,10 @@
|
|||||||
profile IS NULL AND owner_uid = " . $_SESSION["uid"] . " ORDER BY pref_name");
|
profile IS NULL AND owner_uid = " . $_SESSION["uid"] . " ORDER BY pref_name");
|
||||||
|
|
||||||
while ($line = db_fetch_assoc($result)) {
|
while ($line = db_fetch_assoc($result)) {
|
||||||
|
|
||||||
$name = $line["pref_name"];
|
$name = $line["pref_name"];
|
||||||
$value = htmlspecialchars($line["value"]);
|
$value = htmlspecialchars($line["value"]);
|
||||||
|
|
||||||
$out .= "<outline pref-name=\"$name\" value=\"$value\">";
|
$out .= "<outline pref-name=\"$name\" value=\"$value\"/>";
|
||||||
|
|
||||||
$out .= "</outline>";
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
$out .= "</outline>";
|
$out .= "</outline>";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user