summaryrefslogtreecommitdiff
path: root/classes/counters.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2021-02-15 16:14:48 +0300
committerAndrew Dolgov <[email protected]>2021-02-15 16:14:48 +0300
commit71f2f4288f33152653f759755f351a200506b80a (patch)
tree3e1fb46320ab9387a18a6391900c7350b0ad8df7 /classes/counters.php
parent6426ae559aba81b895b556ab2566458b5d3026e6 (diff)
counters: one more
Diffstat (limited to 'classes/counters.php')
-rw-r--r--classes/counters.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/classes/counters.php b/classes/counters.php
index e8c179a95..8392df32f 100644
--- a/classes/counters.php
+++ b/classes/counters.php
@@ -12,7 +12,7 @@ class Counters {
return $data;
}
- static private function getCategoryChildrenCounters($cat_id, $owner_uid) {
+ static private function get_cat_children($cat_id, $owner_uid) {
$pdo = Db::pdo();
$sth = $pdo->prepare("SELECT id FROM ttrss_feed_categories WHERE parent_cat = ?
@@ -23,7 +23,7 @@ class Counters {
$marked = 0;
while ($line = $sth->fetch()) {
- list ($tmp_unread, $tmp_marked) = self::getCategoryChildrenCounters($line["id"], $owner_uid);
+ list ($tmp_unread, $tmp_marked) = self::get_cat_children($line["id"], $owner_uid);
$unread += $tmp_unread + Feeds::_get_cat_unread($line["id"], $owner_uid);
$marked += $tmp_marked + Feeds::_get_cat_marked($line["id"], $owner_uid);
@@ -68,7 +68,7 @@ class Counters {
while ($line = $sth->fetch()) {
if ($line["num_children"] > 0) {
- list ($child_counter, $child_marked_counter) = self::getCategoryChildrenCounters($line["id"], $_SESSION["uid"]);
+ list ($child_counter, $child_marked_counter) = self::get_cat_children($line["id"], $_SESSION["uid"]);
} else {
$child_counter = 0;
$child_marked_counter = 0;