summaryrefslogtreecommitdiff
path: root/classes/article.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2017-05-04 15:57:40 +0300
committerAndrew Dolgov <[email protected]>2017-05-04 15:57:40 +0300
commit7c9b5a3fe40a641af1cb6003b03b2352576a0c4b (patch)
treeaee154f7437c945c18074a2a158a65845ef115f2 /classes/article.php
parentc2f0f24e4c4577944b563f3c0af92a8ed89b8e61 (diff)
move label stuff to Labels class
fix some unresolved functions
Diffstat (limited to 'classes/article.php')
-rw-r--r--classes/article.php16
1 files changed, 8 insertions, 8 deletions
diff --git a/classes/article.php b/classes/article.php
index 95f1704c9..45974a23c 100644
--- a/classes/article.php
+++ b/classes/article.php
@@ -154,7 +154,7 @@ class Article extends Handler_Protected {
if (count($labels) != 0) {
foreach ($labels as $label) {
- label_add_article($ref_id, trim($label), $owner_uid);
+ Labels::add_article($ref_id, trim($label), $owner_uid);
}
}
@@ -179,7 +179,7 @@ class Article extends Handler_Protected {
if (count($labels) != 0) {
foreach ($labels as $label) {
- label_add_article($ref_id, trim($label), $owner_uid);
+ Labels::add_article($ref_id, trim($label), $owner_uid);
}
}
@@ -344,7 +344,7 @@ class Article extends Handler_Protected {
$ids = explode(",", $this->dbh->escape_string($_REQUEST["ids"]));
$label_id = $this->dbh->escape_string($_REQUEST["lid"]);
- $label = $this->dbh->escape_string(label_find_caption($label_id,
+ $label = $this->dbh->escape_string(Labels::find_caption($label_id,
$_SESSION["uid"]));
$reply["info-for-headlines"] = array();
@@ -354,9 +354,9 @@ class Article extends Handler_Protected {
foreach ($ids as $id) {
if ($assign)
- label_add_article($id, $label, $_SESSION["uid"]);
+ Labels::add_article($id, $label, $_SESSION["uid"]);
else
- label_remove_article($id, $label, $_SESSION["uid"]);
+ Labels::remove_article($id, $label, $_SESSION["uid"]);
$labels = $this->get_article_labels($id, $_SESSION["uid"]);
@@ -955,16 +955,16 @@ class Article extends Handler_Protected {
ORDER BY caption");
while ($line = db_fetch_assoc($result)) {
- $rk = array(label_to_feed_id($line["label_id"]),
+ $rk = array(Labels::label_to_feed_id($line["label_id"]),
$line["caption"], $line["fg_color"],
$line["bg_color"]);
array_push($rv, $rk);
}
if (count($rv) > 0)
- label_update_cache($owner_uid, $id, $rv);
+ Labels::update_cache($owner_uid, $id, $rv);
else
- label_update_cache($owner_uid, $id, array("no-labels" => 1));
+ Labels::update_cache($owner_uid, $id, array("no-labels" => 1));
return $rv;
}