Mercurial > hg > chronicle
changeset 197:c472e482ca68
MJ Ray's "reltop" change
author | Steve Kemp <steve@steve.org.uk> |
---|---|
date | Mon, 14 Apr 2008 18:54:40 +0100 |
parents | e2f01ce401c0 |
children | 889827a88e34 |
files | AUTHORS bin/chronicle |
diffstat | 2 files changed, 11 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/AUTHORS Mon Apr 14 18:51:33 2008 +0100 +++ b/AUTHORS Mon Apr 14 18:54:40 2008 +0100 @@ -1,5 +1,5 @@ - + Primary Author -------------- @@ -18,6 +18,10 @@ Sascha Korzen [korzen [@] .de.fh-luh.cc] - Added the optional calendar. + MJ Ray [mjr [@] coop.phonecoop] + - Added RSSv1 date format. + - Added reltop. + Felipe Sateler [fsateler [@] com.gmail] - Produced a Debian package for the software. - Provided fixup for the default comment handling of the default theme.
--- a/bin/chronicle Mon Apr 14 18:51:33 2008 +0100 +++ b/bin/chronicle Mon Apr 14 18:54:40 2008 +0100 @@ -1929,6 +1929,11 @@ { my ( $template, $path ) = (@_); + my $reltop = $path; + $reltop =~ s'[^/]+/'../'g; + $reltop =~ s'[^/]*$''; + $template->param( reltop => $reltop ); + # # Select relative/absolute URL prefix. # @@ -1939,9 +1944,7 @@ } else { - $top = $path; - $top =~ s'[^/]+/'../'g; - $top =~ s'[^/]*$''; + $top = $reltop; } $template->param( top => $top );