X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=SL%2FDispatcher.pm;h=43bf6680b98c38dd1f50b9dd5672efb4fe5b4362;hb=29637d3f54132b3c10293f3600902d107127cdbc;hp=5b912232b3e60c23c50812d313b1491bea2c7ee3;hpb=32822bba14006768f13e0f53e617dd1ca204f1c8;p=kivitendo-erp.git diff --git a/SL/Dispatcher.pm b/SL/Dispatcher.pm index 5b912232b..43bf6680b 100644 --- a/SL/Dispatcher.pm +++ b/SL/Dispatcher.pm @@ -2,6 +2,11 @@ package SL::Dispatcher; use strict; +# Force scripts/locales.pl to parse these templates: +# parse_html_template('login_screen/auth_db_unreachable') +# parse_html_template('login_screen/user_login') +# parse_html_template('generic/error') + BEGIN { use SL::System::Process; my $exe_dir = SL::System::Process::exe_dir; @@ -253,6 +258,7 @@ sub handle_request { if ($EVAL_ERROR ne END_OF_REQUEST) { print STDERR $EVAL_ERROR; $::form->{label_error} = $::request->{cgi}->pre($EVAL_ERROR); + chdir SL::System::Process::exe_dir; eval { show_error('generic/error') }; } };