diff options
author | Yorhel <git@yorhel.nl> | 2009-08-17 11:35:21 +0200 |
---|---|---|
committer | Yorhel <git@yorhel.nl> | 2009-08-17 16:27:16 +0200 |
commit | f85607dd19757fb77546f05fdd53d408216f1623 (patch) | |
tree | 885a01cb4261d56cd7a526d5a6db058069df3036 /lib/VNDB/L10N.pm | |
parent | dc2a9de7c0e519eb3a930f0b38ebe26861b2752e (diff) |
L10N: Converted htmlEditMessage, htmlItemMessage and htmlSearchBox
This finishes Util::CommonHTML, with the exception of htmlVoteStats
Diffstat (limited to 'lib/VNDB/L10N.pm')
-rw-r--r-- | lib/VNDB/L10N.pm | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/VNDB/L10N.pm b/lib/VNDB/L10N.pm index 3dfe00c6..c8b87711 100644 --- a/lib/VNDB/L10N.pm +++ b/lib/VNDB/L10N.pm @@ -148,6 +148,12 @@ use warnings; my($id,$n) = ref($_[0])eq'HASH'?($_[0]{uid}||$_[0]{requester}, $_[0]{username}):@_; return !$id ? '[deleted]' : '<a href="/u'.$id.'">'.$n.'</a>'; } + + # Arguments: index, @list. returns $list[index] + sub index { + shift; + return $_[shift]; + } } |