From c6e1a58a83d86cf310295d5b12821d11ec2d6eb0 Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Fri, 31 Aug 2012 16:34:24 +0200 Subject: [PATCH] _controller_name auch auf $class callbar --- SL/Controller/Base.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 { -- 2.20.1