category support for OPML export (fix again)
This commit is contained in:
parent
18d37445a3
commit
5b9af2b9bc
1 changed files with 6 additions and 4 deletions
10
opml.php
10
opml.php
|
@ -54,20 +54,22 @@
|
|||
|
||||
if ($old_cat_title != $cat_title) {
|
||||
if ($old_cat_title) {
|
||||
print "</outline>";
|
||||
print "</outline>\n";
|
||||
}
|
||||
|
||||
print "<outline title=\"$cat_title\">";
|
||||
if ($cat_title) {
|
||||
print "<outline title=\"$cat_title\">\n";
|
||||
}
|
||||
|
||||
$old_cat_title = $cat_title;
|
||||
}
|
||||
}
|
||||
|
||||
print "<outline text=\"$title\" xmlUrl=\"$url\"/>";
|
||||
print "<outline text=\"$title\" xmlUrl=\"$url\"/>\n";
|
||||
}
|
||||
|
||||
if ($cat_mode && $old_cat_title) {
|
||||
print "</outline>";
|
||||
print "</outline>\n";
|
||||
}
|
||||
|
||||
print "</body></opml>";
|
||||
|
|
Loading…
Reference in a new issue