]> wagnertech.de Git - kivitendo-erp.git/blobdiff - SL/Controller/Base.pm
_controller_name auch auf $class callbar
[kivitendo-erp.git] / SL / Controller / Base.pm
index acf5df5931af61e44d6127e37009557e905bdca6..4dace86ed91844d63e7efd05142c499df2dc1fd1 100644 (file)
@@ -204,7 +204,7 @@ sub _run_action {
 }
 
 sub _controller_name {
-  return (split(/::/, ref($_[0])))[-1];
+  return (split(/::/, ref($_[0]) || $_[0]))[-1];
 }
 
 sub _dispatch {