diff options
author | thomascube <thomas@roundcube.net> | 2005-10-04 20:28:01 +0000 |
---|---|---|
committer | thomascube <thomas@roundcube.net> | 2005-10-04 20:28:01 +0000 |
commit | 597170feb25f5c2e5a90a9c0b1fd62001f169afb (patch) | |
tree | bd34ef48a6c0003dcfbc2047e290f00fdd22fd3a /program/include/main.inc | |
parent | 6dc0269fcc9f11fbd53da1fb647237ab73cf394d (diff) |
Added new languages, hierarchical folder tree and attachments in forwarded messages
Diffstat (limited to 'program/include/main.inc')
-rw-r--r-- | program/include/main.inc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/program/include/main.inc b/program/include/main.inc index 7173917d4..0a63b685b 100644 --- a/program/include/main.inc +++ b/program/include/main.inc @@ -219,7 +219,7 @@ function load_gui() $javascript = "var $JS_OBJECT_NAME = new rcube_webmail();\n"; $javascript .= "$JS_OBJECT_NAME.set_env('comm_path', '$COMM_PATH');\n"; - if ($_GET['_framed'] || $_POST['_framed']) + if (!empty($GLOBALS['_framed'])) $javascript .= "$JS_OBJECT_NAME.set_env('framed', true);\n"; $OUTPUT->add_script($javascript); @@ -339,7 +339,7 @@ function show_message($message, $type='notice') { global $OUTPUT, $JS_OBJECT_NAME, $REMOTE_REQUEST; - $framed = ($_GET['framed'] || $_POST['_framed']); + $framed = $GLOBALS['_framed']; $command = sprintf("display_message('%s', '%s');", addslashes(rep_specialchars_output(rcube_label($message))), $type); @@ -837,7 +837,7 @@ function rcmail_get_edit_field($col, $value, $attrib, $type='text') $input = new textfield($attrib); // use value from post - if ($_POST[$fname]) + if (!empty($_POST[$fname])) $value = $_POST[$fname]; $out = $input->show($value); |