move some label stuff to labels.php
move getfeedcategory() to Feeds
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user