summaryrefslogtreecommitdiff
path: root/IkiWiki/Plugin
diff options
context:
space:
mode:
authorintrigeri <intrigeri@boum.org>2009-01-26 23:21:14 +0100
committerintrigeri <intrigeri@boum.org>2009-01-26 23:21:14 +0100
commit8915d2553c056304bef2fd77b8fc03d99a49e2a9 (patch)
tree14d1fa9515a30a486e043afd3bf73cf321e7ca0c /IkiWiki/Plugin
parent190ea1d47fb03c640d3a244781901f349a53daee (diff)
po: bring back a useful use of scalar
... that was removed in 68869d664b978b063c9181d024edb34a63306c33 Without this scalar, a two-cells array is passed to $template->param, which builds a hash with an odd number of elements. Signed-off-by: intrigeri <intrigeri@boum.org>
Diffstat (limited to 'IkiWiki/Plugin')
-rw-r--r--IkiWiki/Plugin/po.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/IkiWiki/Plugin/po.pm b/IkiWiki/Plugin/po.pm
index 363720e1d..230ecbb8d 100644
--- a/IkiWiki/Plugin/po.pm
+++ b/IkiWiki/Plugin/po.pm
@@ -266,7 +266,7 @@ sub pagetemplate (@) {
$template->param(percenttranslated => percenttranslated($page));
}
if ($template->query(name => "istranslation")) {
- $template->param(istranslation => istranslation($page));
+ $template->param(istranslation => scalar istranslation($page));
}
if ($template->query(name => "istranslatable")) {
$template->param(istranslatable => istranslatable($page));