Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Do not quote __PACKAGE__ or it loses it's function

  • Loading branch information...
commit 6308c61a55a141a7ccfe4804b5d976675c8f0994 1 parent 7c29ead
@niner authored
Showing with 2 additions and 2 deletions.
  1. +1 −1  lib/CiderCMS.pm
  2. +1 −1  lib/CiderCMS/Controller/System/Publish.pm
View
2  lib/CiderCMS.pm
@@ -133,7 +133,7 @@ sub fs_path_for_instance {
Controllers may register subroutines returning additional actions for the management interface dynamically.
For example:
- CiderCMS->register_management_action(__PACKAGE__ => sub {
+ CiderCMS->register_management_action(__PACKAGE__, sub {
my ($self, $c) = @_;
return {title => 'Foo', uri => $c->uri_for('foo')}, { ... };
});
View
2  lib/CiderCMS/Controller/System/Publish.pm
@@ -57,7 +57,7 @@ sub publish : PathPart('system/publish') Chained('/system/init') {
=cut
-CiderCMS->register_management_action(__PACKAGE__ => sub {
+CiderCMS->register_management_action(__PACKAGE__, sub {
my ($self, $c) = @_;
return {title => 'Publish', uri => $c->uri_for_instance('system/publish')} if $c->stash->{site}->property('publish_uri');
Please sign in to comment.
Something went wrong with that request. Please try again.