From ed132eddea4a5a21f6f0c1454efa14c5ebe79520 Mon Sep 17 00:00:00 2001 From: thomascube Date: Tue, 2 Sep 2008 17:22:00 +0000 Subject: New feature to import contacts from a vcard file + mark form buttons that provide the most obvious operation --- program/include/main.inc | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'program/include/main.inc') 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 '
';
-    print $msg;
+    print join(";
\n", $msg); print "
\n"; } } -- cgit v1.2.3