summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authoralecpl <alec@alec.pl>2010-03-01 19:04:34 +0000
committeralecpl <alec@alec.pl>2010-03-01 19:04:34 +0000
commit929a508d801d9434c8d98dccd0311e3a707303ba (patch)
tree3219bab9df6bb5d09aaf1cd5d6ba69e794678406 /plugins
parenta72ad657241fd35ae7e0f2cbdec210caa9554695 (diff)
- Improve performance by avoiding unnecessary updates to the session table (#1486325)
Diffstat (limited to 'plugins')
-rw-r--r--plugins/managesieve/managesieve.php4
-rw-r--r--plugins/new_user_dialog/new_user_dialog.php2
2 files changed, 3 insertions, 3 deletions
diff --git a/plugins/managesieve/managesieve.php b/plugins/managesieve/managesieve.php
index 219c33489..e88fcff45 100644
--- a/plugins/managesieve/managesieve.php
+++ b/plugins/managesieve/managesieve.php
@@ -221,7 +221,7 @@ class managesieve extends rcube_plugin
if ($result === true) {
$this->rc->output->show_message('managesieve.setdeleted', 'confirmation');
$this->rc->output->command('managesieve_reload');
- rcube_sess_unset('managesieve_current');
+ $this->rc->session->remove('managesieve_current');
} else {
$this->rc->output->show_message('managesieve.setdeleteerror', 'error');
}
@@ -270,7 +270,7 @@ class managesieve extends rcube_plugin
if (!$error) {
$this->rc->output->show_message('managesieve.setcreated', 'confirmation');
$this->rc->output->command('parent.managesieve_reload', $name);
-// rcube_sess_unset('managesieve_current');
+// $this->rc->session->remove('managesieve_current');
} else {
$this->rc->output->show_message($error, 'error');
}
diff --git a/plugins/new_user_dialog/new_user_dialog.php b/plugins/new_user_dialog/new_user_dialog.php
index 11154ce29..006cb2711 100644
--- a/plugins/new_user_dialog/new_user_dialog.php
+++ b/plugins/new_user_dialog/new_user_dialog.php
@@ -98,7 +98,7 @@ class new_user_dialog extends rcube_plugin
// save data if not empty
if (!empty($save_data['name']) && !empty($save_data['email'])) {
$rcmail->user->update_identity($identity['identity_id'], $save_data);
- rcube_sess_unset('plugin.newuserdialog');
+ $rcmail->session->remove('plugin.newuserdialog');
}
$rcmail->output->redirect('');