From 39d44d443d2271ec8787e6192b8b5811bee41ebf Mon Sep 17 00:00:00 2001 From: intrigeri Date: Fri, 10 Oct 2008 14:46:48 +0200 Subject: rename urlpath hook into tweakurlpath for consistency's sake Signed-off-by: intrigeri --- IkiWiki.pm | 2 +- doc/plugins/write.mdwn | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/IkiWiki.pm b/IkiWiki.pm index f2b50e77a..36e85d413 100644 --- a/IkiWiki.pm +++ b/IkiWiki.pm @@ -938,7 +938,7 @@ sub beautify_urlpath ($) { #{{{ $url =~ s!/index.$config{htmlext}$!/!; } - run_hooks(urlpath => sub { + run_hooks(tweakurlpath => sub { $url=shift->(url => $url); }); diff --git a/doc/plugins/write.mdwn b/doc/plugins/write.mdwn index e7656b299..884c7eefb 100644 --- a/doc/plugins/write.mdwn +++ b/doc/plugins/write.mdwn @@ -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 -- cgit v1.2.3