diff options
| author | thomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2008-09-02 17:22:00 +0000 |
|---|---|---|
| committer | thomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2008-09-02 17:22:00 +0000 |
| commit | 48ac9b2adc7a4e37dd934a5c45e6ffb112dff299 (patch) | |
| tree | af4afd13427d5bbf5b9c5b6a406f3be3dcf8112e /roundcubemail/program/include/main.inc | |
| parent | 7ea6112e4580bf3c1a73c015275d60c5acf39225 (diff) | |
New feature to import contacts from a vcard file + mark form buttons that provide the most obvious operation
git-svn-id: https://svn.roundcube.net/trunk@1716 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program/include/main.inc')
| -rw-r--r-- | roundcubemail/program/include/main.inc | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/roundcubemail/program/include/main.inc b/roundcubemail/program/include/main.inc index e337c4eb8..83ed8c02e 100644 --- a/roundcubemail/program/include/main.inc +++ b/roundcubemail/program/include/main.inc @@ -792,19 +792,20 @@ function format_email_recipient($email, $name='') * * @param mixed Debug message or data */ -function console($msg) +function console() { - if (!is_string($msg)) - $msg = var_export($msg, true); + $msg = array(); + foreach (func_get_args() as $arg) + $msg[] = !is_string($arg) ? var_export($arg, true) : $arg; if (!($GLOBALS['CONFIG']['debug_level'] & 4)) - write_log('console', $msg); + write_log('console', join(";\n", $msg)); else if ($GLOBALS['OUTPUT']->ajax_call) - print "/*\n $msg \n*/\n"; + print "/*\n " . join(";\n", $msg) . " \n*/\n"; else { print '<div style="background:#eee; border:1px solid #ccc; margin-bottom:3px; padding:6px"><pre>'; - print $msg; + print join(";<br/>\n", $msg); print "</pre></div>\n"; } } |
