From 0029dd3fb9b2479b531b2daf08c63accf8435c34 Mon Sep 17 00:00:00 2001 From: tetragon Date: Wed, 10 Oct 2007 16:39:21 +0000 Subject: Set $form->{stylesheet} after loading the user config git-svn-id: https://ledger-smb.svn.sourceforge.net/svnroot/ledger-smb/trunk@1733 4979c152-3d1c-0410-bac9-87ea11338e46 --- old-handler.pl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'old-handler.pl') diff --git a/old-handler.pl b/old-handler.pl index 176789a4..4100711f 100755 --- a/old-handler.pl +++ b/old-handler.pl @@ -115,14 +115,14 @@ if ($@) { "$msg1

$msg2

"); } -map { $form->{$_} = $myconfig{$_} } qw(stylesheet timeout) - unless ( $form->{type} eq 'preferences' ); - $form->db_init( \%myconfig ); &check_password; # we get rid of myconfig and use User as a real object %myconfig = %{ LedgerSMB::User->fetch_config( $form ) }; +map { $form->{$_} = $myconfig{$_} } qw(stylesheet timeout) + unless ( $form->{type} eq 'preferences' ); + $locale = LedgerSMB::Locale->get_handle( $myconfig{countrycode} ) or $form->error( __FILE__ . ':' . __LINE__ . ": Locale not loaded: $!\n" ); # pull in the main code -- cgit v1.2.3