aboutsummaryrefslogtreecommitdiff
path: root/IkiWiki
diff options
context:
space:
mode:
authorintrigeri <intrigeri@boum.org>2009-08-28 14:47:11 +0200
committerintrigeri <intrigeri@boum.org>2009-08-28 14:47:11 +0200
commit53dc18ec2b46ded088a3dca0abafb2f3c184969e (patch)
tree59682c74d875d72ccc5a332a3b686bd985859501 /IkiWiki
parenta06b8590cebfbc7dc7075b72f8cabd7279a88c59 (diff)
downloadikiwiki-53dc18ec2b46ded088a3dca0abafb2f3c184969e.tar
ikiwiki-53dc18ec2b46ded088a3dca0abafb2f3c184969e.tar.gz
Revert "po: keep masterpage as the rootpage for inline's post form"
This reverts commit cf43ae5a1f5460a98cdd7acb36c0691b2eec988f, which actually only works when a rootpage parameter is set. A more complete fix will be written soon.
Diffstat (limited to 'IkiWiki')
-rw-r--r--IkiWiki/Plugin/po.pm6
1 files changed, 1 insertions, 5 deletions
diff --git a/IkiWiki/Plugin/po.pm b/IkiWiki/Plugin/po.pm
index 103347c37..55c1c32c6 100644
--- a/IkiWiki/Plugin/po.pm
+++ b/IkiWiki/Plugin/po.pm
@@ -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;