summaryrefslogtreecommitdiff
path: root/plugins/kolab_zpush
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_zpush
parent48df8c34f9f48c185e340d5a52870e8d38ea1d84 (diff)
downloadroundcubemail-plugins-kolab-77d34666389d38033b03dd35cc803296649abc70.tar.gz
Get rid of deprecated function aliases and constants usage
Diffstat (limited to 'plugins/kolab_zpush')
-rw-r--r--plugins/kolab_zpush/kolab_zpush.php14
1 files changed, 7 insertions, 7 deletions
diff --git a/plugins/kolab_zpush/kolab_zpush.php b/plugins/kolab_zpush/kolab_zpush.php
index 6f38182..e9d1170 100644
--- a/plugins/kolab_zpush/kolab_zpush.php
+++ b/plugins/kolab_zpush/kolab_zpush.php
@@ -90,8 +90,8 @@ class kolab_zpush extends rcube_plugin
public function json_command()
{
$storage = $this->rc->get_storage();
- $cmd = get_input_value('cmd', RCUBE_INPUT_GPC);
- $imei = get_input_value('id', RCUBE_INPUT_GPC);
+ $cmd = rcube_utils::get_input_value('cmd', rcube_utils::INPUT_GPC);
+ $imei = rcube_utils::get_input_value('id', rcube_utils::INPUT_GPC);
switch ($cmd) {
case 'load':
@@ -117,12 +117,12 @@ class kolab_zpush extends rcube_plugin
break;
case 'save':
+ $syncmode = intval(rcube_utils::get_input_value('syncmode', rcube_utils::INPUT_POST));
+ $laxpic = intval(rcube_utils::get_input_value('laxpic', rcube_utils::INPUT_POST));
+ $devicealias = rcube_utils::get_input_value('devicealias', rcube_utils::INPUT_POST, true);
+ $subsciptions = rcube_utils::get_input_value('subscribed', rcube_utils::INPUT_POST);
$devices = $this->list_devices();
- $syncmode = intval(get_input_value('syncmode', RCUBE_INPUT_POST));
- $devicealias = get_input_value('devicealias', RCUBE_INPUT_POST, true);
- $laxpic = intval(get_input_value('laxpic', RCUBE_INPUT_POST));
- $subsciptions = get_input_value('subscribed', RCUBE_INPUT_POST);
- $err = false;
+ $err = false;
if ($device = $devices[$imei]) {
// update device config if changed