diff options
author | Joey Hess <joey@kodama.kitenet.net> | 2008-01-29 18:19:47 -0500 |
---|---|---|
committer | Joey Hess <joey@kodama.kitenet.net> | 2008-01-29 18:19:47 -0500 |
commit | f584abec0cacc46cd8defd2d6fd7a6f889eea59c (patch) | |
tree | 1677c4163cc2941585b3e006ce2fa66194f4b610 /IkiWiki/Plugin | |
parent | 9e15bd27eaae39c2bbfa4aa4c00e1a7b043c70b9 (diff) |
really fix the baseurl problem
the issue is that HTML::Template doesn't expand top-level variables when inside
a loop
Diffstat (limited to 'IkiWiki/Plugin')
-rw-r--r-- | IkiWiki/Plugin/recentchanges.pm | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/IkiWiki/Plugin/recentchanges.pm b/IkiWiki/Plugin/recentchanges.pm index 9dad0af5e..5ac0a30ef 100644 --- a/IkiWiki/Plugin/recentchanges.pm +++ b/IkiWiki/Plugin/recentchanges.pm @@ -60,6 +60,8 @@ sub store ($$$) { #{{{ else { $_->{link} = IkiWiki::pagetitle($_->{page}); } + $_->{baseurl}="$config{url}/" if length $config{url}; + $_; } @{$change->{pages}} ]; @@ -94,7 +96,6 @@ sub store ($$$) { #{{{ commitdate => displaytime($change->{when}, "%X %x"), wikiname => $config{wikiname}, ); - $template->param(baseurl => "$config{url}/") if length $config{url}; IkiWiki::run_hooks(pagetemplate => sub { shift->(page => $page, destpage => $page, template => $template); }); |