summaryrefslogtreecommitdiff
path: root/program/include/main.inc
diff options
context:
space:
mode:
authorthomascube <thomas@roundcube.net>2008-09-02 17:22:00 +0000
committerthomascube <thomas@roundcube.net>2008-09-02 17:22:00 +0000
commited132eddea4a5a21f6f0c1454efa14c5ebe79520 (patch)
treeddca59a3305bc72f414a9b9a3ba5794126822e0b /program/include/main.inc
parent82bac871fa626e82a593f7ab5a4ca3509261049f (diff)
New feature to import contacts from a vcard file + mark form buttons that provide the most obvious operation
Diffstat (limited to 'program/include/main.inc')
-rw-r--r--program/include/main.inc13
1 files changed, 7 insertions, 6 deletions
diff --git a/program/include/main.inc b/program/include/main.inc
index e337c4eb8..83ed8c02e 100644
--- a/program/include/main.inc
+++ b/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";
}
}