summaryrefslogtreecommitdiff
path: root/IkiWiki/Plugin
diff options
context:
space:
mode:
authorJoey Hess <joey@gnu.kitenet.net>2009-01-26 13:21:33 -0500
committerJoey Hess <joey@gnu.kitenet.net>2009-01-26 13:21:33 -0500
commitc5642119f7fafdafdaff05c0d37e787de221e9e2 (patch)
tree5983c9201d901f0697ef39be71c2cfbbe905cd6e /IkiWiki/Plugin
parent68869d664b978b063c9181d024edb34a63306c33 (diff)
another useless use of scalar
scalar(undef) is undef, so using scalar here had no effect. Instead make the function return "", probably avoiding an uninitialized value warning.
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 7dfa52f57..91bf8872f 100644
--- a/IkiWiki/Plugin/po.pm
+++ b/IkiWiki/Plugin/po.pm
@@ -753,7 +753,7 @@ sub istranslation ($) {
$translations{$masterpage}{$lang}=$page unless exists $translations{$masterpage}{$lang};
return (maybe_add_leading_slash($masterpage, $hasleadingslash), $lang);
}
- return;
+ return "";
}
sub masterpage ($) {