projects
/
kivitendo-erp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
aae0ac7
)
SL::Controller::Base::_controller_name für Kontrollernamen mit :: im lokalen Part
author
Moritz Bunkus
<m.bunkus@linet-services.de>
Fri, 31 Aug 2012 16:06:33 +0000
(18:06 +0200)
committer
Moritz Bunkus
<m.bunkus@linet-services.de>
Fri, 31 Aug 2012 16:06:33 +0000
(18:06 +0200)
SL/Controller/Base.pm
patch
|
blob
|
history
diff --git
a/SL/Controller/Base.pm
b/SL/Controller/Base.pm
index
4dace86
..
1188ffe
100644
(file)
--- a/
SL/Controller/Base.pm
+++ b/
SL/Controller/Base.pm
@@
-204,7
+204,9
@@
sub _run_action {
}
sub _controller_name {
- return (split(/::/, ref($_[0]) || $_[0]))[-1];
+ my $class = ref($_[0]) || $_[0];
+ $class =~ s/^SL::Controller:://;
+ return $class;
}
sub _dispatch {