From: Moritz Bunkus Date: Fri, 31 Aug 2012 14:34:24 +0000 (+0200) Subject: _controller_name auch auf $class callbar X-Git-Tag: release-3.0.0beta1~257 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=c6e1a58a83d86cf310295d5b12821d11ec2d6eb0;p=kivitendo-erp.git _controller_name auch auf $class callbar --- diff --git a/SL/Controller/Base.pm b/SL/Controller/Base.pm index acf5df593..4dace86ed 100644 --- a/SL/Controller/Base.pm +++ b/SL/Controller/Base.pm @@ -204,7 +204,7 @@ sub _run_action { } sub _controller_name { - return (split(/::/, ref($_[0])))[-1]; + return (split(/::/, ref($_[0]) || $_[0]))[-1]; } sub _dispatch {