po: keep masterpage as the rootpage for inline's post form
Signed-off-by: intrigeri <intrigeri@boum.org>master
parent
72ac9821e5
commit
cf43ae5a1f
|
@ -564,9 +564,13 @@ sub mybestlink ($$) {
|
||||||
my $link=shift;
|
my $link=shift;
|
||||||
|
|
||||||
my $res=$origsubs{'bestlink'}->(masterpage($page), $link);
|
my $res=$origsubs{'bestlink'}->(masterpage($page), $link);
|
||||||
|
my @caller = caller(1);
|
||||||
if (length $res
|
if (length $res
|
||||||
&& istranslatable($res)
|
&& istranslatable($res)
|
||||||
&& istranslation($page)) {
|
&& istranslation($page)
|
||||||
|
# keep masterpage as the rootpage for inline's post form
|
||||||
|
&& !(exists $caller[3] && defined $caller[3]
|
||||||
|
&& ($caller[3] eq "IkiWiki::rootpage"))) {
|
||||||
return $res . "." . lang($page);
|
return $res . "." . lang($page);
|
||||||
}
|
}
|
||||||
return $res;
|
return $res;
|
||||||
|
|
Loading…
Reference in New Issue