diff options
author | Andrew Dolgov <[email protected]> | 2017-05-04 15:36:36 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2017-05-04 15:36:36 +0300 |
commit | 0086a8974069efb38ad1345a74e568e001f17f92 (patch) | |
tree | 63a7c350e61364b068469361bf16f0e2c3bb54e9 /classes | |
parent | 904aff76671cd1c806546014992bab34fec12dd8 (diff) |
move some label stuff to labels.php
move getfeedcategory() to Feeds
Diffstat (limited to 'classes')
-rwxr-xr-x | classes/feeds.php | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/classes/feeds.php b/classes/feeds.php index a96e53fcf..740c7df43 100755 --- a/classes/feeds.php +++ b/classes/feeds.php @@ -2184,5 +2184,18 @@ class Feeds extends Handler_Protected { return $rv; } + static function getFeedCategory($feed) { + $result = db_query("SELECT cat_id FROM ttrss_feeds + WHERE id = '$feed'"); + + if (db_num_rows($result) > 0) { + return db_fetch_result($result, 0, "cat_id"); + } else { + return false; + } + + } + + } |