diff options
author | Andrew Dolgov <[email protected]> | 2017-05-04 15:13:02 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2017-05-04 15:13:02 +0300 |
commit | aeb1abedb2cb5051c2a94e287f114bdbdaa467ff (patch) | |
tree | d716174ccb7f20ae383ec9ff93989772bd41cb80 /classes/rpc.php | |
parent | a230bf88a9ce4589eeaf2d00226eafb78b4de01c (diff) |
move a bunch of functions into Feeds/Article namespaces
+ static function catchupArticlesById($ids, $cmode, $owner_uid = false) {
+ static function getLastArticleId() {
+ static function queryFeedHeadlines($params) {
+ static function getParentCategories($cat, $owner_uid) {
+ static function getChildCategories($cat, $owner_uid) {
move the rest of functions2.php back to functions.php as it is of more manageable size, remove the former
Diffstat (limited to 'classes/rpc.php')
-rwxr-xr-x | classes/rpc.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/classes/rpc.php b/classes/rpc.php index 949a6177a..4c4e52b7a 100755 --- a/classes/rpc.php +++ b/classes/rpc.php @@ -297,7 +297,7 @@ class RPC extends Handler_Protected { if (!empty($_REQUEST['seq'])) $reply['seq'] = (int) $_REQUEST['seq']; - if ($last_article_id != getLastArticleId()) { + if ($last_article_id != Article::getLastArticleId()) { $reply['counters'] = getAllCounters(); } @@ -311,7 +311,7 @@ class RPC extends Handler_Protected { $ids = explode(",", $this->dbh->escape_string($_REQUEST["ids"])); $cmode = sprintf("%d", $_REQUEST["cmode"]); - catchupArticlesById($ids, $cmode); + Article::catchupArticlesById($ids, $cmode); print json_encode(array("message" => "UPDATE_COUNTERS", "ids" => $ids)); } |