diff options
author | Andrew Dolgov <[email protected]> | 2017-05-04 15:57:40 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2017-05-04 15:57:40 +0300 |
commit | 7c9b5a3fe40a641af1cb6003b03b2352576a0c4b (patch) | |
tree | aee154f7437c945c18074a2a158a65845ef115f2 /classes/pref/labels.php | |
parent | c2f0f24e4c4577944b563f3c0af92a8ed89b8e61 (diff) |
move label stuff to Labels class
fix some unresolved functions
Diffstat (limited to 'classes/pref/labels.php')
-rw-r--r-- | classes/pref/labels.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/classes/pref/labels.php b/classes/pref/labels.php index 26fbb02b1..5720a1f4b 100644 --- a/classes/pref/labels.php +++ b/classes/pref/labels.php @@ -136,7 +136,7 @@ class Pref_Labels extends Handler_Protected { AND owner_uid = " . $_SESSION["uid"]); } - $caption = $this->dbh->escape_string(label_find_caption($id, $_SESSION["uid"])); + $caption = $this->dbh->escape_string(Labels::find_caption($id, $_SESSION["uid"])); /* Remove cached data */ @@ -156,7 +156,7 @@ class Pref_Labels extends Handler_Protected { fg_color = '', bg_color = '' WHERE id = '$id' AND owner_uid = " . $_SESSION["uid"]); - $caption = $this->dbh->escape_string(label_find_caption($id, $_SESSION["uid"])); + $caption = $this->dbh->escape_string(Labels::find_caption($id, $_SESSION["uid"])); /* Remove cached data */ @@ -216,7 +216,7 @@ class Pref_Labels extends Handler_Protected { $ids = explode(",", $this->dbh->escape_string($_REQUEST["ids"])); foreach ($ids as $id) { - label_remove($id, $_SESSION["uid"]); + Labels::remove($id, $_SESSION["uid"]); } } @@ -227,7 +227,7 @@ class Pref_Labels extends Handler_Protected { if ($caption) { - if (label_create($caption)) { + if (Labels::create($caption)) { if (!$output) { print T_sprintf("Created label <b>%s</b>", htmlspecialchars($caption)); } |