diff options
author | einhverfr <einhverfr@4979c152-3d1c-0410-bac9-87ea11338e46> | 2006-12-05 03:18:44 +0000 |
---|---|---|
committer | einhverfr <einhverfr@4979c152-3d1c-0410-bac9-87ea11338e46> | 2006-12-05 03:18:44 +0000 |
commit | 6eb1b88d9ac9fde4efca4668b99d9628f0a9cd10 (patch) | |
tree | 9201aec639c2c14f9fc4155558383dafe4c63e0a | |
parent | d640e98a985b61ede4e7154908adfb8cd562350b (diff) |
Moved error-function and info-function into environment variables
git-svn-id: https://ledger-smb.svn.sourceforge.net/svnroot/ledger-smb/branches/1.2@718 4979c152-3d1c-0410-bac9-87ea11338e46
-rwxr-xr-x | LedgerSMB/Form.pm | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/LedgerSMB/Form.pm b/LedgerSMB/Form.pm index 63048646..90fb16c9 100755 --- a/LedgerSMB/Form.pm +++ b/LedgerSMB/Form.pm @@ -196,8 +196,8 @@ sub error { } else { - if ($self->{error_function}) { - &{ $self->{error_function} }($msg); + if ($ENV{error_function}) { + &{ $ENV{error_function} }($msg); } else { die "Error: $msg\n"; } @@ -223,8 +223,8 @@ sub info { } else { - if ($self->{info_function}) { - &{ $self->{info_function} }($msg); + if ($ENV{info_function}) { + &{ $ENV{info_function} }($msg); } else { print "$msg\n"; } |