aboutsummaryrefslogtreecommitdiff
path: root/IkiWiki
diff options
context:
space:
mode:
authorJoey Hess <joey@kitenet.net>2011-07-30 10:46:26 +0200
committerJoey Hess <joey@kitenet.net>2011-07-30 10:46:26 +0200
commit577f5d38376141a9bad565c8bbd4c35cd1e5c6e2 (patch)
treeeed91eb4e3a88f87c5160879e3960946daa8c491 /IkiWiki
parentf78c1b6a6cd2d0b736afd44dacfd8c1848a061b2 (diff)
downloadikiwiki-577f5d38376141a9bad565c8bbd4c35cd1e5c6e2.tar
ikiwiki-577f5d38376141a9bad565c8bbd4c35cd1e5c6e2.tar.gz
fix mercurial commit with session but without nickname
Diffstat (limited to 'IkiWiki')
-rw-r--r--IkiWiki/Plugin/mercurial.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/IkiWiki/Plugin/mercurial.pm b/IkiWiki/Plugin/mercurial.pm
index 102b4692b..c7f920ab9 100644
--- a/IkiWiki/Plugin/mercurial.pm
+++ b/IkiWiki/Plugin/mercurial.pm
@@ -180,7 +180,6 @@ sub rcs_commit_helper (@) {
$ENV{HGENCODING} = 'utf-8';
my $user="Anonymous";
- my $nickname;
if (defined $params{session}) {
if (defined $params{session}->param("name")) {
$user = $params{session}->param("name");
@@ -189,6 +188,7 @@ sub rcs_commit_helper (@) {
$user = $params{session}->remote_addr();
}
+ my $nickname=$user;
if (defined $params{session}->param("nickname")) {
$nickname=encode_utf8($params{session}->param("nickname"));
$nickname=~s/\s+/_/g;