po: bring back a useful use of scalar
authorintrigeri <intrigeri@boum.org>
Mon, 26 Jan 2009 22:21:14 +0000 (23:21 +0100)
committerintrigeri <intrigeri@boum.org>
Mon, 26 Jan 2009 22:21:14 +0000 (23:21 +0100)
... 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>
IkiWiki/Plugin/po.pm

index 363720e1dfefc55230c6bda250256172ed58e8ca..230ecbb8ded8aea154dd66a81da1dd5da953f1ad 100644 (file)
@@ -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));