summaryrefslogtreecommitdiff
path: root/classes/labels.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2020-09-22 14:54:15 +0300
committerAndrew Dolgov <[email protected]>2020-09-22 14:54:15 +0300
commit6811d0bde220d7632b9d6a7fa4f4931cc96324c8 (patch)
tree84e66e1427ea53c0a2a0473cabade723d1e6ce47 /classes/labels.php
parentb5710baf3439343bbc65c2fc1586aefd0b94d99c (diff)
use self:: in some places to invoke static methods from the same class
Diffstat (limited to 'classes/labels.php')
-rw-r--r--classes/labels.php10
1 files changed, 5 insertions, 5 deletions
diff --git a/classes/labels.php b/classes/labels.php
index 7a69a5191..1f27ee25c 100644
--- a/classes/labels.php
+++ b/classes/labels.php
@@ -57,7 +57,7 @@ class Labels
$pdo = Db::pdo();
if ($force)
- Labels::clear_cache($id);
+ self::clear_cache($id);
if (!$labels)
$labels = Article::get_article_labels($id);
@@ -82,7 +82,7 @@ class Labels
static function remove_article($id, $label, $owner_uid) {
- $label_id = Labels::find_id($label, $owner_uid);
+ $label_id = self::find_id($label, $owner_uid);
if (!$label_id) return;
@@ -95,12 +95,12 @@ class Labels
$sth->execute([$label_id, $id]);
- Labels::clear_cache($id);
+ self::clear_cache($id);
}
static function add_article($id, $label, $owner_uid) {
- $label_id = Labels::find_id($label, $owner_uid);
+ $label_id = self::find_id($label, $owner_uid);
if (!$label_id) return;
@@ -123,7 +123,7 @@ class Labels
$sth->execute([$label_id, $id]);
}
- Labels::clear_cache($id);
+ self::clear_cache($id);
}