mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2026-02-10 16:01:33 +00:00
move some label stuff to labels.php
move getfeedcategory() to Feeds
This commit is contained in:
@@ -1,4 +1,12 @@
|
||||
<?php
|
||||
function label_to_feed_id($label) {
|
||||
return LABEL_BASE_INDEX - 1 - abs($label);
|
||||
}
|
||||
|
||||
function feed_to_label_id($feed) {
|
||||
return LABEL_BASE_INDEX - 1 + abs($feed);
|
||||
}
|
||||
|
||||
function label_find_id($label, $owner_uid) {
|
||||
$result = db_query(
|
||||
"SELECT id FROM ttrss_labels2 WHERE caption = '$label'
|
||||
|
||||
Reference in New Issue
Block a user