summaryrefslogtreecommitdiff
path: root/plugins/kolab_delegation
diff options
context:
space:
mode:
authorAleksander Machniak <alec@alec.pl>2014-10-06 07:19:26 (GMT)
committerAleksander Machniak <alec@alec.pl>2014-10-06 07:19:26 (GMT)
commit77d34666389d38033b03dd35cc803296649abc70 (patch)
treeac05945351b43158f775942c00e84bf2af03caef /plugins/kolab_delegation
parent48df8c34f9f48c185e340d5a52870e8d38ea1d84 (diff)
downloadroundcubemail-plugins-kolab-77d34666389d38033b03dd35cc803296649abc70.tar.gz
Get rid of deprecated function aliases and constants usage
Diffstat (limited to 'plugins/kolab_delegation')
-rw-r--r--plugins/kolab_delegation/kolab_delegation.php18
1 files changed, 9 insertions, 9 deletions
diff --git a/plugins/kolab_delegation/kolab_delegation.php b/plugins/kolab_delegation/kolab_delegation.php
index a43fb5d..8596009 100644
--- a/plugins/kolab_delegation/kolab_delegation.php
+++ b/plugins/kolab_delegation/kolab_delegation.php
@@ -327,8 +327,8 @@ class kolab_delegation extends rcube_plugin
// Delegate delete
if ($this->rc->action == 'plugin.delegation-delete') {
- $id = get_input_value('id', RCUBE_INPUT_GPC);
- $success = $engine->delegate_delete($id, (bool) get_input_value('acl', RCUBE_INPUT_GPC));
+ $id = rcube_utils::get_input_value('id', rcube_utils::INPUT_GPC);
+ $success = $engine->delegate_delete($id, (bool) rcube_utils::get_input_value('acl', rcube_utils::INPUT_GPC));
if ($success) {
$this->rc->output->show_message($this->gettext('deletesuccess'), 'confirmation');
@@ -340,8 +340,8 @@ class kolab_delegation extends rcube_plugin
}
// Delegate add/update
else if ($this->rc->action == 'plugin.delegation-save') {
- $id = get_input_value('id', RCUBE_INPUT_GPC);
- $acl = get_input_value('folders', RCUBE_INPUT_GPC);
+ $id = rcube_utils::get_input_value('id', rcube_utils::INPUT_GPC);
+ $acl = rcube_utils::get_input_value('folders', rcube_utils::INPUT_GPC);
// update
if ($id) {
@@ -358,7 +358,7 @@ class kolab_delegation extends rcube_plugin
}
// new
else {
- $login = get_input_value('newid', RCUBE_INPUT_GPC);
+ $login = rcube_utils::get_input_value('newid', rcube_utils::INPUT_GPC);
$delegate = $engine->delegate_get_by_name($login);
$success = $engine->delegate_add($delegate, $acl);
@@ -376,8 +376,8 @@ class kolab_delegation extends rcube_plugin
}
// Delegate autocompletion
else if ($this->rc->action == 'plugin.delegation-autocomplete') {
- $search = get_input_value('_search', RCUBE_INPUT_GPC, true);
- $reqid = get_input_value('_reqid', RCUBE_INPUT_GPC);
+ $search = rcube_utils::get_input_value('_search', rcube_utils::INPUT_GPC, true);
+ $reqid = rcube_utils::get_input_value('_reqid', rcube_utils::INPUT_GPC);
$users = $engine->list_users($search);
$this->rc->output->command('ksearch_query_results', $users, $search, $reqid);
@@ -418,7 +418,7 @@ class kolab_delegation extends rcube_plugin
{
$engine = $this->engine();
$table = new html_table(array('cols' => 2));
- $id = get_input_value('_id', RCUBE_INPUT_GPC);
+ $id = rcube_utils::get_input_value('_id', rcube_utils::INPUT_GPC);
$field_id = 'delegate';
if ($id) {
@@ -457,7 +457,7 @@ class kolab_delegation extends rcube_plugin
}
$engine = $this->engine();
- $id = get_input_value('_id', RCUBE_INPUT_GPC);
+ $id = rcube_utils::get_input_value('_id', rcube_utils::INPUT_GPC);
if ($id) {
$delegate = $engine->delegate_get($id);