From 805e16ec65c338323333244fb67c59e1d69ba96f Mon Sep 17 00:00:00 2001 From: intrigeri Date: Wed, 31 Dec 2008 15:37:25 +0100 Subject: po: inject our own (currently a no-op) nicepagetitle function Signed-off-by: intrigeri --- IkiWiki/Plugin/po.pm | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/IkiWiki/Plugin/po.pm b/IkiWiki/Plugin/po.pm index 44fd44a2d..93274ba13 100644 --- a/IkiWiki/Plugin/po.pm +++ b/IkiWiki/Plugin/po.pm @@ -48,6 +48,8 @@ sub import { #{{{ inject(name => "IkiWiki::targetpage", call => \&mytargetpage); $origsubs{'urlto'}=\&IkiWiki::urlto; 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 -- cgit v1.2.3