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>
master
intrigeri 2008-11-10 12:48:27 +01:00
parent 44bb872a97
commit aef1b0f503
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}
}
}