From: Moritz Bunkus Date: Wed, 17 Feb 2010 12:00:57 +0000 (+0100) Subject: Scriptname steht nicht mehr in $form X-Git-Tag: release-2.6.2beta1~278 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=d4f9d559a4a4d5e8fa2bb10be268e24634169b5e;p=kivitendo-erp.git Scriptname steht nicht mehr in $form --- diff --git a/SL/Dispatcher.pm b/SL/Dispatcher.pm index dc7f68f2d..b4f75ba1b 100644 --- a/SL/Dispatcher.pm +++ b/SL/Dispatcher.pm @@ -102,10 +102,10 @@ sub require_main_code { }; $::form->error($EVAL_ERROR) if ($EVAL_ERROR); } - if ($::form->{login} && -f "bin/mozilla/$::form->{login}_$::form->{script}") { + if ($::form->{login} && -f "bin/mozilla/$::form->{login}_$script") { eval { package main; - require "bin/mozilla/$::form->{login}_$::form->{script}"; + require "bin/mozilla/$::form->{login}_$script"; }; $::form->error($EVAL_ERROR) if ($EVAL_ERROR); }