my $caller = caller(0);
my $namespace = '/';
if ( $command =~ /^\// ) {
- $command =~ /^(.*)\/(\w+)$/;
+ $command =~ /^\/(.*)\/(\w+)$/;
$namespace = $1 || '/';
- $namespace = s/^\/// if $namespace ne '/';
- $command = $2;
+ $command = $2 || $command;
+ $command =~ s/^\///;
}
else { $namespace = _class2prefix($caller) || '/' }
my $results = $c->get_action( $command, $namespace );
my $uid = $parent->getUID;
for my $action ( keys %{ $actions->{private}->{$uid} } ) {
my ( $class, $code ) = @{ $actions->{private}->{$uid}->{$action} };
- $privates->addRow( "$prefix$action", $class, 37 );
+ $privates->addRow( "$prefix$action", $class );
}
$walker->( $walker, $_, $prefix ) for $parent->getAllChildren;
};