From c36bedf90e56a1cdf66e87643f7b0e0ef1d02673 Mon Sep 17 00:00:00 2001 From: Simon Cozens Date: Sat, 17 Jul 2004 16:36:03 +0000 Subject: [PATCH] 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 --- lib/Maypole/View/Base.pm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 # ... ) ; -- 2.39.5