summaryrefslogtreecommitdiff
path: root/lib/Tools.pm
diff options
context:
space:
mode:
authorAndreas Brachold <vdr07@deltab.de>2008-01-06 09:53:15 +0000
committerAndreas Brachold <vdr07@deltab.de>2008-01-06 09:53:15 +0000
commit01a4de9d90ce8d33fd4e0a2bc8ca3c0a78225441 (patch)
tree3244323f5fe95cc77f21a49afdddb743ac735676 /lib/Tools.pm
parentd1a1dc63b47d0cad7b3f9d839dc00ff820ac3a50 (diff)
downloadxxv-01a4de9d90ce8d33fd4e0a2bc8ca3c0a78225441.tar.gz
xxv-01a4de9d90ce8d33fd4e0a2bc8ca3c0a78225441.tar.bz2
* RECORDS: optimize scan directory
* Ajax: Add support version 2.0 * Skins: drop widget url * tools: Fix multiline messages
Diffstat (limited to 'lib/Tools.pm')
-rw-r--r--lib/Tools.pm23
1 files changed, 12 insertions, 11 deletions
diff --git a/lib/Tools.pm b/lib/Tools.pm
index 6e2072d..a212216 100644
--- a/lib/Tools.pm
+++ b/lib/Tools.pm
@@ -177,16 +177,17 @@ sub con_err {
my $console = shift;
my $msg = shift;
+ if(ref $console) {
+ $console->{call} = 'message'; #reset default widget, avoid own widget
+ $console->err($msg);
+ }
+
if(ref $msg eq 'ARRAY') {
- $msg = join('\n', @$msg);
+ $msg = join("\n", @$msg);
}
&_msg(501,$msg, 2);
- if(ref $console) {
- $console->{call} = 'message'; #reset default widget, avoid own widget
- $console->err($msg);
- }
return undef;
}
@@ -197,17 +198,17 @@ sub con_msg {
my $console = shift;
my $msg = shift;
- if(ref $msg eq 'ARRAY') {
- $msg = join('\n', @$msg);
- }
-
- &_msg(250,$msg, 4);
-
if(ref $console) {
$console->{call} = 'message'; #reset default widget, avoid own widget
$console->msg($msg);
}
+ if(ref $msg eq 'ARRAY') {
+ $msg = join("\n", @$msg);
+ }
+
+ &_msg(250,$msg, 4);
+
return undef;
}