From: Simon Cozens Date: Sat, 17 Jul 2004 16:36:03 +0000 (+0000) Subject: Fix base so it doesn't have a trailing slash. X-Git-Tag: 2.10~201 X-Git-Url: https://git.decadent.org.uk/gitweb/?a=commitdiff_plain;h=c36bedf90e56a1cdf66e87643f7b0e0ef1d02673;p=maypole.git Fix base so it doesn't have a trailing slash. git-svn-id: http://svn.maypole.perl.org/Maypole/trunk@161 48953598-375a-da11-a14b-00016c27c3ee --- diff --git a/lib/Maypole/View/Base.pm b/lib/Maypole/View/Base.pm index 8229d21..668b2c4 100644 --- a/lib/Maypole/View/Base.pm +++ b/lib/Maypole/View/Base.pm @@ -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 # ... ) ;