summaryrefslogtreecommitdiff
path: root/program/include
diff options
context:
space:
mode:
authoralecpl <alec@alec.pl>2010-09-21 08:41:59 +0000
committeralecpl <alec@alec.pl>2010-09-21 08:41:59 +0000
commit115158136626d2d135cc20794b6e8dc19a8fe1bf (patch)
treeec944ee9c37b286d084c2fc787a50842128f522a /program/include
parent799359457f89646efa502a08e66cd9875a010178 (diff)
- Fix setting headers for IE in AJAX responses
Diffstat (limited to 'program/include')
-rw-r--r--program/include/rcube_json_output.php10
-rwxr-xr-xprogram/include/rcube_template.php1
2 files changed, 7 insertions, 4 deletions
diff --git a/program/include/rcube_json_output.php b/program/include/rcube_json_output.php
index 31eaa87a8..2751ec182 100644
--- a/program/include/rcube_json_output.php
+++ b/program/include/rcube_json_output.php
@@ -36,16 +36,18 @@ class rcube_json_output
private $callbacks = array();
private $message = null;
+ public $browser;
public $type = 'js';
public $ajax_call = true;
-
-
+
+
/**
* Constructor
*/
- public function __construct($task)
+ public function __construct($task=null)
{
- $this->config = rcmail::get_instance()->config;
+ $this->config = rcmail::get_instance()->config;
+ $this->browser = new rcube_browser();
}
diff --git a/program/include/rcube_template.php b/program/include/rcube_template.php
index 4c59c4197..89e560046 100755
--- a/program/include/rcube_template.php
+++ b/program/include/rcube_template.php
@@ -40,6 +40,7 @@ class rcube_template extends rcube_html_page
var $js_commands = array();
var $object_handlers = array();
+ public $browser;
public $type = 'html';
public $ajax_call = false;