X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=bin%2Fmozilla%2Fadmin.pl;h=2819da00ed8372d802635940d177141c7ef80414;hb=624c53dc0cb5056d2c259aec6f815e69b8313ae0;hp=0e61c3c85d5d2bebe2a6cfe23e236958f4f6b5a0;hpb=38a2e7894debd7bc5787e74129f8f6f4e74ed2dc;p=kivitendo-erp.git diff --git a/bin/mozilla/admin.pl b/bin/mozilla/admin.pl index 0e61c3c85..2819da00e 100755 --- a/bin/mozilla/admin.pl +++ b/bin/mozilla/admin.pl @@ -43,6 +43,7 @@ use Sys::Hostname; use SL::Auth; use SL::Form; +use SL::Iconv; use SL::Mailer; use SL::User; use SL::Common; @@ -84,6 +85,9 @@ sub run { $::auth->set_session_value('rpw', $::form->{rpw}); $::auth->create_or_refresh_session(); } + + _apply_dbupgrade_scripts(); + call_sub($locale->findsub($form->{action})); } } else { @@ -1162,4 +1166,8 @@ sub dispatcher { $form->error($locale->text('No action defined.')); } +sub _apply_dbupgrade_scripts { + ::end_of_request() if SL::DBUpgrade2->new(form => $::form, dbdriver => 'Pg', auth => 1)->apply_admin_dbupgrade_scripts(1); +} + 1;