Revert "po: keep masterpage as the rootpage for inline's post form"

This reverts commit cf43ae5a1f, which actually
only works when a rootpage parameter is set. A more complete fix will be
written soon.
master
intrigeri 2009-08-28 14:47:11 +02:00
parent a06b8590ce
commit 53dc18ec2b
1 changed files with 1 additions and 5 deletions

View File

@ -564,13 +564,9 @@ sub mybestlink ($$) {
my $link=shift;
my $res=$origsubs{'bestlink'}->(masterpage($page), $link);
my @caller = caller(1);
if (length $res
&& istranslatable($res)
&& istranslation($page)
# keep masterpage as the rootpage for inline's post form
&& !(exists $caller[3] && defined $caller[3]
&& ($caller[3] eq "IkiWiki::rootpage"))) {
&& istranslation($page)) {
return $res . "." . lang($page);
}
return $res;