]> wagnertech.de Git - mfinanz.git/blobdiff - scripts/console
Globale Variablen nach %::lx_office_conf verschoben
[mfinanz.git] / scripts / console
index added9f839fd9dfb8b32b765f4d09f4b821f7b4b..2613c72379b1da63b800efbafdaafd2a4e3201e1 100755 (executable)
@@ -59,24 +59,18 @@ sub lxinit {
 
   package main;
 
-  { no warnings 'once';
-    $::userspath  = "users";
-    $::templates  = "templates";
-    $::sendmail   = "| /usr/sbin/sendmail -t";
-  }
-
   eval { require "config/lx-erp.conf"; };
   eval { require "config/lx-erp-local.conf"; } if -f "config/lx-erp-local.conf";
 
+  read_config 'config/lx_office.conf' => %::lx_office_conf;
+  SL::Dispatcher::_decode_recursively(\%::lx_office_conf);
+
   $::lxdebug = LXDebug->new;
   $::locale = Locale->new($::language);
   $::cgi    = CGI->new qw();
   $::form   = Form->new;
   $::auth   = SL::Auth->new;
 
-  read_config 'config/lx_office.conf' => %::lx_office_conf;
-  SL::Dispatcher::_decode_recursively(\%::lx_office_conf);
-
   die 'cannot reach auth db'               unless $::auth->session_tables_present;
 
   $::auth->restore_session;