diff options
| author | 2022-05-12 22:31:31 +0200 | |
|---|---|---|
| committer | 2022-05-12 22:31:31 +0200 | |
| commit | da0a333b941efecd0dcfe04346ce0241b42345cf (patch) | |
| tree | b7a4b135adad34c0f8762ff79c42c97d57424f7e /app/views | |
| parent | 4a87206f2898665e99953590536cedc6c5505f05 (diff) | |
Refactor OPML export categories (#4356)
* Refactor OPML export categories
Simplify code to comply with types hints.
And renamed a property to plural.
* Link to OPML namespace
Diffstat (limited to 'app/views')
| -rw-r--r-- | app/views/helpers/export/opml.phtml | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/app/views/helpers/export/opml.phtml b/app/views/helpers/export/opml.phtml index 458ea0e58..30512b96a 100644 --- a/app/views/helpers/export/opml.phtml +++ b/app/views/helpers/export/opml.phtml @@ -11,12 +11,11 @@ $opml_array = array( foreach ($this->categories as $key => $cat) { $opml_array['body'][$key] = array( - 'text' => $cat['name'], + 'text' => $cat->name(), '@outlines' => array() ); - /** @var FreshRSS_Feed $feed */ - foreach ($cat['feeds'] as $feed) { + foreach ($cat->feeds() as $feed) { $outline = [ 'text' => htmlspecialchars_decode($feed->name(), ENT_QUOTES), 'type' => FreshRSS_Export_Service::TYPE_RSS_ATOM, |
