diff options
author | thomascube <thomas@roundcube.net> | 2008-09-05 07:27:23 +0000 |
---|---|---|
committer | thomascube <thomas@roundcube.net> | 2008-09-05 07:27:23 +0000 |
commit | c8a21d646ca96aaf00867b90b582a6572c591ee2 (patch) | |
tree | 5a160d0643389e96458784017ba78d7c56410d00 /program | |
parent | 5ec762a0850af60f8edd3d90abbf4aa9e4ae4d8c (diff) |
Killed one more global var + log logins to a separate file (not console)
Diffstat (limited to 'program')
-rw-r--r-- | program/include/main.inc | 2 | ||||
-rw-r--r-- | program/include/rcube_json_output.php | 1 | ||||
-rwxr-xr-x | program/include/rcube_template.php | 1 | ||||
-rw-r--r-- | program/steps/mail/list.inc | 1 |
4 files changed, 3 insertions, 2 deletions
diff --git a/program/include/main.inc b/program/include/main.inc index 3fad9cbfb..a6ad93d2b 100644 --- a/program/include/main.inc +++ b/program/include/main.inc @@ -317,7 +317,7 @@ function rep_specialchars_output($str, $enctype='', $mode='', $newlines=TRUE) $is_iso_8859_1 = true; } if (!$enctype) - $enctype = $GLOBALS['OUTPUT_TYPE']; + $enctype = $OUTPUT->type; // encode for plaintext if ($enctype=='text') diff --git a/program/include/rcube_json_output.php b/program/include/rcube_json_output.php index fa5632929..00b7697bd 100644 --- a/program/include/rcube_json_output.php +++ b/program/include/rcube_json_output.php @@ -34,6 +34,7 @@ class rcube_json_output private $texts = array(); private $commands = array(); + public $type = 'js'; public $ajax_call = true; diff --git a/program/include/rcube_template.php b/program/include/rcube_template.php index 847ea0df5..3fdd81762 100755 --- a/program/include/rcube_template.php +++ b/program/include/rcube_template.php @@ -39,6 +39,7 @@ class rcube_template extends rcube_html_page var $js_commands = array(); var $object_handlers = array(); + public $type = 'html'; public $ajax_call = false; /** diff --git a/program/steps/mail/list.inc b/program/steps/mail/list.inc index e09919cb2..201437190 100644 --- a/program/steps/mail/list.inc +++ b/program/steps/mail/list.inc @@ -19,7 +19,6 @@ */ -$OUTPUT_TYPE = 'js'; // is there a sort type for this request? if ($sort = get_input_value('_sort', RCUBE_INPUT_GET)) { |