Merge pull request 'Replace special feed and category numbers with constants.' (#104) from wn/tt-rss:feature/special-feed-and-cat-consts into master

Reviewed-on: https://dev.tt-rss.org/tt-rss/tt-rss/pulls/104
This commit is contained in:
fox
2023-03-07 20:13:10 +03:00
10 changed files with 150 additions and 92 deletions

View File

@@ -781,7 +781,7 @@ class PluginHost {
// Plugin feed functions are *EXPERIMENTAL*!
// cat_id: only -1 is supported (Special)
// cat_id: only -1 (Feeds::CATEGORY_SPECIAL) is supported (Special)
function add_feed(int $cat_id, string $title, string $icon, Plugin $sender): int {
if (empty($this->feeds[$cat_id]))