1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-16 03:35:57 +00:00

api: implement subscribeToFeed/unsubscribeFeed (closes #623)

This commit is contained in:
Andrew Dolgov
2013-03-24 14:28:43 +04:00
parent 62a1f9899e
commit efc6553da4
4 changed files with 35 additions and 7 deletions

View File

@@ -1012,7 +1012,7 @@ class Pref_Feeds extends Handler_Protected {
$ids = split(",", db_escape_string($this->link, $_REQUEST["ids"]));
foreach ($ids as $id) {
$this->remove_feed($this->link, $id, $_SESSION["uid"]);
Pref_Feeds::remove_feed($this->link, $id, $_SESSION["uid"]);
}
return;
@@ -1657,7 +1657,7 @@ class Pref_Feeds extends Handler_Protected {
ccache_remove($link, $id, $owner_uid, true);
}
private function remove_feed($link, $id, $owner_uid) {
static function remove_feed($link, $id, $owner_uid) {
if ($id > 0) {