]> wagnertech.de Git - mfinanz.git/blobdiff - scripts/console
Globale Variablen für Systemeinstellungen und Features nach %::lx_office_conf verschoben
[mfinanz.git] / scripts / console
index 4d89fdb5787aaadfbfa30596eb79df30ae8805e2..79db5a96c5f686f7042d84573f7f233d1ee1214d 100755 (executable)
@@ -59,12 +59,6 @@ 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";
 
@@ -72,7 +66,7 @@ sub lxinit {
   SL::Dispatcher::_decode_recursively(\%::lx_office_conf);
 
   $::lxdebug = LXDebug->new;
-  $::locale = Locale->new($::language);
+  $::locale = Locale->new($::lx_office_conf{system}->{language});
   $::cgi    = CGI->new qw();
   $::form   = Form->new;
   $::auth   = SL::Auth->new;