diff options
Diffstat (limited to 'program')
-rw-r--r-- | program/include/rcube_json_output.php | 10 | ||||
-rwxr-xr-x | program/include/rcube_template.php | 1 |
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; |