[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

SF.net SVN: ledger-smb: [1733] trunk/old-handler.pl



Revision: 1733
          http://ledger-smb.svn.sourceforge.net/ledger-smb/?rev=1733&view=rev
Author:   tetragon
Date:     2007-10-10 09:39:21 -0700 (Wed, 10 Oct 2007)

Log Message:
-----------
Set $form->{stylesheet} after loading the user config

Modified Paths:
--------------
    trunk/old-handler.pl

Modified: trunk/old-handler.pl
===================================================================
--- trunk/old-handler.pl	2007-10-10 16:32:22 UTC (rev 1732)
+++ trunk/old-handler.pl	2007-10-10 16:39:21 UTC (rev 1733)
@@ -115,14 +115,14 @@
         "$msg1 <p><a href=\"login.pl\" target=\"_top\">$msg2</a></p>");
 }
 
-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


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.