diff options
author | intrigeri <intrigeri@boum.org> | 2008-12-31 15:37:25 +0100 |
---|---|---|
committer | intrigeri <intrigeri@boum.org> | 2008-12-31 15:40:32 +0100 |
commit | 805e16ec65c338323333244fb67c59e1d69ba96f (patch) | |
tree | a44e0464c2e0420b364d16bd71d96403c82dc1e4 | |
parent | c0c6b8d79ec45ae5ec4c754845947222741d95b7 (diff) |
po: inject our own (currently a no-op) nicepagetitle function
Signed-off-by: intrigeri <intrigeri@boum.org>
-rw-r--r-- | IkiWiki/Plugin/po.pm | 7 |
1 files changed, 7 insertions, 0 deletions
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 |