summaryrefslogtreecommitdiff
path: root/program/include/rcmail.php
diff options
context:
space:
mode:
authoralecpl <alec@alec.pl>2010-05-18 10:25:29 +0000
committeralecpl <alec@alec.pl>2010-05-18 10:25:29 +0000
commit677e1f26fe47cc0c3e0819cb99a9024af49a619c (patch)
tree91074d603179889ba7fbde9d080c85ed62b27846 /program/include/rcmail.php
parentcaccd193c8403913d7c77d65363ff6e4d4269dfb (diff)
- Some files from /bin + spellchecking actions moved to the new 'utils' task
Diffstat (limited to 'program/include/rcmail.php')
-rw-r--r--program/include/rcmail.php23
1 files changed, 12 insertions, 11 deletions
diff --git a/program/include/rcmail.php b/program/include/rcmail.php
index d9ee00a42..864ee8d41 100644
--- a/program/include/rcmail.php
+++ b/program/include/rcmail.php
@@ -28,10 +28,10 @@
*/
class rcmail
{
- static public $main_tasks = array('mail','settings','addressbook','login','logout','dummy');
-
+ static public $main_tasks = array('mail','settings','addressbook','login','logout','utils','dummy');
+
static private $instance;
-
+
public $config;
public $user;
public $db;
@@ -43,10 +43,10 @@ class rcmail
public $task;
public $action = '';
public $comm_path = './';
-
+
private $texts;
-
-
+
+
/**
* This implements the 'singleton' design pattern
*
@@ -107,11 +107,12 @@ class rcmail
$this->action = asciiwords(get_input_value('_action', RCUBE_INPUT_GPC));
// reset some session parameters when changing task
- if ($this->session && $_SESSION['task'] != $this->task)
- $this->session->remove('page');
-
- // set current task to session
- $_SESSION['task'] = $this->task;
+ if ($this->task != 'utils') {
+ if ($this->session && $_SESSION['task'] != $this->task)
+ $this->session->remove('page');
+ // set current task to session
+ $_SESSION['task'] = $this->task;
+ }
// init output class
if (!empty($_REQUEST['_remote']))