summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorintrigeri <intrigeri@boum.org>2008-11-02 18:54:53 +0100
committerintrigeri <intrigeri@boum.org>2008-11-02 18:54:53 +0100
commit37a9e642910628b021f0dd3cf9203f7f76f3a7cd (patch)
tree347332c72144b061594cf06bcaaf8d2670af86be
parent7d88fb3ff873e1423ed198895ac5647cea58c8ba (diff)
po plugin: fix targetpage for home page's translations
Signed-off-by: intrigeri <intrigeri@boum.org>
-rw-r--r--IkiWiki/Plugin/po.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/IkiWiki/Plugin/po.pm b/IkiWiki/Plugin/po.pm
index 4608f59c7..88f8194fb 100644
--- a/IkiWiki/Plugin/po.pm
+++ b/IkiWiki/Plugin/po.pm
@@ -225,7 +225,7 @@ sub mytargetpage ($$) { #{{{
if (istranslation($page)) {
my ($masterpage, $lang) = ($page =~ /(.*)[.]([a-z]{2})$/);
- if (! $config{usedirs} || $page eq 'index') {
+ if (! $config{usedirs} || $masterpage eq 'index') {
return $masterpage . "." . $lang . "." . $ext;
}
else {