rename urlpath hook into tweakurlpath for consistency's sake

Signed-off-by: intrigeri <intrigeri@boum.org>
master
intrigeri 2008-10-10 14:46:48 +02:00
parent e51089e11f
commit 39d44d443d
2 changed files with 3 additions and 3 deletions

View File

@ -938,7 +938,7 @@ sub beautify_urlpath ($) { #{{{
$url =~ s!/index.$config{htmlext}$!/!;
}
run_hooks(urlpath => sub {
run_hooks(tweakurlpath => sub {
$url=shift->(url => $url);
});

View File

@ -437,9 +437,9 @@ be compiled into.
It should return the target filename.
### urlpath
### tweakurlpath
hook(type => "urlpath", id => "foo", call => \&urlpath);
hook(type => "tweakurlpath", id => "foo", call => \&tweakurlpath);
This hook can be used to modify the internal urls generated by
ikiwiki; it is run just after ikiwiki has removed the trailing