po: inject our own (currently a no-op) nicepagetitle function

Signed-off-by: intrigeri <intrigeri@boum.org>
master
intrigeri 2008-12-31 15:37:25 +01:00
parent c0c6b8d79e
commit 805e16ec65
1 changed files with 7 additions and 0 deletions

View File

@ -48,6 +48,8 @@ sub import { #{{{
inject(name => "IkiWiki::targetpage", call => \&mytargetpage); inject(name => "IkiWiki::targetpage", call => \&mytargetpage);
$origsubs{'urlto'}=\&IkiWiki::urlto; $origsubs{'urlto'}=\&IkiWiki::urlto;
inject(name => "IkiWiki::urlto", call => \&myurlto); inject(name => "IkiWiki::urlto", call => \&myurlto);
$origsubs{'nicepagetitle'}=\&IkiWiki::nicepagetitle;
inject(name => "IkiWiki::nicepagetitle", call => \&mynicepagetitle);
} #}}} } #}}}
@ -485,6 +487,11 @@ sub myurlto ($$;$) { #{{{
} }
} #}}} } #}}}
sub mynicepagetitle ($;$) { #{{{
my ($page, $unescaped) = (shift, shift);
return $origsubs{'nicepagetitle'}->($page, $unescaped);
} #}}}
# ,---- # ,----
# | Blackboxes for private data # | Blackboxes for private data