]> git.decadent.org.uk Git - maypole.git/commitdiff
Fix base so it doesn't have a trailing slash.
authorSimon Cozens <simon@simon-cozens.org>
Sat, 17 Jul 2004 16:36:03 +0000 (16:36 +0000)
committerSimon Cozens <simon@simon-cozens.org>
Sat, 17 Jul 2004 16:36:03 +0000 (16:36 +0000)
git-svn-id: http://svn.maypole.perl.org/Maypole/trunk@161 48953598-375a-da11-a14b-00016c27c3ee

lib/Maypole/View/Base.pm

index 8229d2193387f1c7b8c0f9862d882f35d75f05ba..668b2c4430fa4b061d0343cf237dfd203a45ae2f 100644 (file)
@@ -21,10 +21,12 @@ sub paths {
 sub vars {
     my ($self, $r) = @_;
     my $class = $r->model_class;
+    my $base = $r->{config}->{uri_base};
+    $base =~ s/\/+$//;
     my %args = (
         request => $r,
         objects => $r->objects,
-        base    => $r->config->{uri_base},
+        base    => $base,
         config  => $r->config
         # ...
     ) ;