1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-13 15:25:59 +00:00

move several more global functions to more appropriate classes

This commit is contained in:
Andrew Dolgov
2019-06-20 08:14:06 +03:00
parent 6d746453c7
commit 4fa9aee4e7
8 changed files with 207 additions and 209 deletions

View File

@@ -1166,7 +1166,7 @@ class Pref_Feeds extends Handler_Protected {
function addCat() {
$feed_cat = trim(clean($_REQUEST["cat"]));
add_feed_category($feed_cat);
Feeds::add_feed_category($feed_cat);
}
function index() {
@@ -1750,7 +1750,7 @@ class Pref_Feeds extends Handler_Protected {
WHERE feed_id = ? AND is_cat = ? AND owner_uid = ?");
$sth->execute([$feed_id, bool_to_sql_bool($is_cat), $owner_uid]);
return get_feed_access_key($feed_id, $is_cat, $owner_uid);
return Feeds::get_feed_access_key($feed_id, $is_cat, $owner_uid);
}
// Silent