X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=admin.pl;h=433ffe9d3f1980b410a6676484b04a8de41fc6ae;hb=56d540df9d79d434d5a2e2759f1ffe3bcaf2226b;hp=ef97a15a1465b964407359930805122102865810;hpb=94899fc98c0683b7f3fda6e4b9e0abc7d3923a92;p=kivitendo-erp.git diff --git a/admin.pl b/admin.pl index ef97a15a1..433ffe9d3 100755 --- a/admin.pl +++ b/admin.pl @@ -2,15 +2,10 @@ use strict; -BEGIN { - unshift @INC, "modules/override"; # Use our own versions of various modules (e.g. YAML). - push @INC, "modules/fallback"; # Only use our own versions of modules if there's no system version. - push @INC, "SL"; # FCGI won't find modules that are not properly named. Help it by inclduging SL -} - use SL::Dispatcher; -SL::Dispatcher::pre_startup(); -SL::Dispatcher::handle_request('CGI'); +our $dispatcher = SL::Dispatcher->new('CGI'); +$dispatcher->pre_startup; +$dispatcher->handle_request; 1;