summaryrefslogtreecommitdiff
path: root/classes/opml.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/opml.php
parentc2f0f24e4c4577944b563f3c0af92a8ed89b8e61 (diff)
move label stuff to Labels class
fix some unresolved functions
Diffstat (limited to 'classes/opml.php')
-rw-r--r--classes/opml.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/classes/opml.php b/classes/opml.php
index a3381cc74..0671053c8 100644
--- a/classes/opml.php
+++ b/classes/opml.php
@@ -292,9 +292,9 @@ class Opml extends Handler_Protected {
$fg_color = $this->dbh->escape_string($attrs->getNamedItem('label-fg-color')->nodeValue);
$bg_color = $this->dbh->escape_string($attrs->getNamedItem('label-bg-color')->nodeValue);
- if (!label_find_id($label_name, $_SESSION['uid'])) {
+ if (!Labels::find_id($label_name, $_SESSION['uid'])) {
$this->opml_notice(T_sprintf("Adding label %s", htmlspecialchars($label_name)));
- label_create($label_name, $fg_color, $bg_color, $owner_uid);
+ Labels::create($label_name, $fg_color, $bg_color, $owner_uid);
} else {
$this->opml_notice(T_sprintf("Duplicate label: %s", htmlspecialchars($label_name)));
}