projects
/
ikiwiki.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a06b859
)
Revert "po: keep masterpage as the rootpage for inline's post form"
author
intrigeri
<intrigeri@boum.org>
Fri, 28 Aug 2009 12:47:11 +0000
(14:47 +0200)
committer
intrigeri
<intrigeri@boum.org>
Fri, 28 Aug 2009 12:47:11 +0000
(14:47 +0200)
This reverts commit
cf43ae5a1f5460a98cdd7acb36c0691b2eec988f
, which actually
only works when a rootpage parameter is set. A more complete fix will be
written soon.
IkiWiki/Plugin/po.pm
patch
|
blob
|
history
diff --git
a/IkiWiki/Plugin/po.pm
b/IkiWiki/Plugin/po.pm
index 103347c3776f20980ce75b9203614b102f694e2d..55c1c32c64f24c563b40d17e8249163b2d8b36c5 100644
(file)
--- 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;