diff options
| author | 2013-08-26 01:47:14 +0200 | |
|---|---|---|
| committer | 2013-08-26 01:47:14 +0200 | |
| commit | 0696890c06557770ba2ab4f101003c3e8bb95ccf (patch) | |
| tree | d3f5dd3c150ea63e24b36f1cb6732a3f19a1acd5 /lib/lib_rss.php | |
| parent | 31a6a13268023a2db5eba2445ee6c7db4a6d9623 (diff) | |
Use feed names coming from OPML
Use the feed names (text or title) provided by OPML and do not overwrite
them during import.
Diffstat (limited to 'lib/lib_rss.php')
| -rw-r--r-- | lib/lib_rss.php | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/lib/lib_rss.php b/lib/lib_rss.php index a7a5244f8..0711f9d8a 100644 --- a/lib/lib_rss.php +++ b/lib/lib_rss.php @@ -133,9 +133,15 @@ function getFeedsOutline ($outline, $cat_id) { function getFeed ($outline, $cat_id) { $url = (string) $outline['xmlUrl']; + $title = ''; + if (isset ($outline['text'])) { + $title = (string) $outline['text']; + } elseif (isset ($outline['title'])) { + $title = (string) $outline['title']; + } $feed = new Feed ($url); $feed->_category ($cat_id); - + $feed->_name ($title); return $feed; } |
