]> git.decadent.org.uk Git - maypole.git/blobdiff - lib/Maypole.pm
2.09 - maintain the order that plugins are loaded, add tests for Maypole::Application...
[maypole.git] / lib / Maypole.pm
index 75d159e6ea58cfc659929efbece9989d09df8a0f..2f3f75e8cc77680a9674b74828ece1a146f61f48 100644 (file)
@@ -7,7 +7,7 @@ use Maypole::Config;
 use Maypole::Constants;
 use Maypole::Headers;
 
-our $VERSION = '2.06';
+our $VERSION = '2.09';
 
 __PACKAGE__->mk_classdata($_) for qw( config init_done view_object );
 __PACKAGE__->mk_accessors(
@@ -186,8 +186,7 @@ sub exception { return ERROR }
 sub parse_path {
     my $self = shift;
     $self->{path} ||= "frontpage";
-    my @pi = split /\//, $self->{path};
-    shift @pi while @pi and !$pi[0];
+    my @pi = $self->{path} =~ m{([^/]+)/?}g;
     $self->{table}  = shift @pi;
     $self->{action} = shift @pi;
     $self->{action} ||= "index";