diff options
author | Javier Rojas <jerojasro@devnull.li> | 2010-07-19 01:11:28 -0500 |
---|---|---|
committer | Javier Rojas <jerojasro@devnull.li> | 2010-07-19 01:11:28 -0500 |
commit | 194817b63d2241e8764f01ad64a2aaaa0b6bf5b3 (patch) | |
tree | 7e6ed4db598577081d27617be76f530ff635f78d /IkiWiki | |
parent | cfed58f2908886c222c7305b1be4044de800fc6d (diff) | |
parent | 0ddc89123ebfa6b3b763e1a918b6d38282cee625 (diff) |
Merge branch 'master' of git://git.ikiwiki.info
Diffstat (limited to 'IkiWiki')
-rw-r--r-- | IkiWiki/Plugin/po.pm | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/IkiWiki/Plugin/po.pm b/IkiWiki/Plugin/po.pm index 903a9500f..224412676 100644 --- a/IkiWiki/Plugin/po.pm +++ b/IkiWiki/Plugin/po.pm @@ -64,6 +64,8 @@ sub import { inject(name => "IkiWiki::cgiurl", call => \&mycgiurl); $origsubs{'rootpage'}=\&IkiWiki::rootpage; inject(name => "IkiWiki::rootpage", call => \&myrootpage); + $origsubs{'isselflink'}=\&IkiWiki::isselflink; + inject(name => "IkiWiki::isselflink", call => \&myisselflink); } } @@ -675,6 +677,17 @@ sub myrootpage (@) { return $rootpage; } +sub myisselflink ($$) { + my $page=shift; + my $link=shift; + + return 1 if $origsubs{'isselflink'}->($page, $link); + if (istranslation($page)) { + return $origsubs{'isselflink'}->(masterpage($page), $link); + } + return; +} + # ,---- # | Blackboxes for private data # `---- |