summaryrefslogtreecommitdiff
path: root/IkiWiki/Plugin
diff options
context:
space:
mode:
authorintrigeri <intrigeri@boum.org>2008-11-10 12:48:27 +0100
committerintrigeri <intrigeri@boum.org>2008-11-10 12:48:27 +0100
commitaef1b0f5035a1b6b6d35d831dc026118853d99d2 (patch)
tree319e3b23973e15134b439264a5494f68b035ed0d /IkiWiki/Plugin
parent44bb872a9705781e20c1b7af89297240523d6bb9 (diff)
po: prevent a slave page to depend on itself
It has never caused harm yet, but it might in the future. Signed-off-by: intrigeri <intrigeri@boum.org>
Diffstat (limited to 'IkiWiki/Plugin')
-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 7bc702eca..d2e6bbdbc 100644
--- a/IkiWiki/Plugin/po.pm
+++ b/IkiWiki/Plugin/po.pm
@@ -496,7 +496,7 @@ sub pagetemplate (@) { #{{{
elsif (istranslation($page)) {
add_depends($page, $masterpage);
foreach my $translation (values %{$translations{$masterpage}}) {
- add_depends($page, $translation);
+ add_depends($page, $translation) unless $page eq $translation;
}
}
}