]> sipb.mit.edu Git - ikiwiki.git/commitdiff
rename urlpath hook into tweakurlpath for consistency's sake
authorintrigeri <intrigeri@boum.org>
Fri, 10 Oct 2008 12:46:48 +0000 (14:46 +0200)
committerintrigeri <intrigeri@boum.org>
Sat, 18 Oct 2008 13:49:08 +0000 (15:49 +0200)
Signed-off-by: intrigeri <intrigeri@boum.org>
IkiWiki.pm
doc/plugins/write.mdwn

index f2b50e77aa887a82b0e57377f2ee9cfca19713c7..36e85d4135f146e321c5e07b4917444afcbc232e 100644 (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);
        });
 
index e7656b2998bbb1fe19207f10e8d60b451a15938e..884c7eefb3ab979580f0ff8c89ce59ed932da7ed 100644 (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