summaryrefslogtreecommitdiff
path: root/menu.pl
diff options
context:
space:
mode:
authoreinhverfr <einhverfr@4979c152-3d1c-0410-bac9-87ea11338e46>2006-09-22 06:11:45 +0000
committereinhverfr <einhverfr@4979c152-3d1c-0410-bac9-87ea11338e46>2006-09-22 06:11:45 +0000
commit1be032cc33531158196d406f44de3fe8f1e8e8b0 (patch)
treeacdcf3b969c6b957b76473f1cc896a6e0efba557 /menu.pl
parent4228c08809b0ff57b13061ab0cb1d3193ba86f4c (diff)
Now db custom fields are cached in the $form object. Also there is now a
$form->{dbh} which is a noauto database handle to be used for all db activities. git-svn-id: https://ledger-smb.svn.sourceforge.net/svnroot/ledger-smb/trunk@128 4979c152-3d1c-0410-bac9-87ea11338e46
Diffstat (limited to 'menu.pl')
-rwxr-xr-xmenu.pl2
1 files changed, 2 insertions, 0 deletions
diff --git a/menu.pl b/menu.pl
index 8c245510..b957690e 100755
--- a/menu.pl
+++ b/menu.pl
@@ -107,6 +107,8 @@ $SIG{__DIE__} = sub { $form->error($_[0]) };
$myconfig{dbpasswd} = unpack 'u', $myconfig{dbpasswd};
map { $form->{$_} = $myconfig{$_} } qw(stylesheet timeout) unless ($form->{type} eq 'preferences');
+$form->db_init(\%myconfig);
+
if ($form{path} ne 'bin/lynx'){ $form{path} = 'bin/mozilla';}
# did sysadmin lock us out