projects
/
ikiwiki.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
68869d6
)
another useless use of scalar
author
Joey Hess
<joey@gnu.kitenet.net>
Mon, 26 Jan 2009 18:21:33 +0000
(13:21 -0500)
committer
Joey Hess
<joey@gnu.kitenet.net>
Mon, 26 Jan 2009 18:21:33 +0000
(13:21 -0500)
scalar(undef) is undef, so using scalar here had no effect.
Instead make the function return "", probably avoiding an uninitialized
value warning.
IkiWiki/Plugin/po.pm
patch
|
blob
|
history
diff --git
a/IkiWiki/Plugin/po.pm
b/IkiWiki/Plugin/po.pm
index 7dfa52f570c3cd21fa63234713b44316af3cae9c..91bf8872f24b4054f423f1f3944463db3f777553 100644
(file)
--- 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 ($) {