[vhffs-dev] [1631] Fix: the "Update IRC nick" worked only for the current logged user. |
[ Thread Index |
Date Index
| More vhffs.org/vhffs-dev Archives
]
Revision: 1631
Author: xavier
Date: 2010-10-23 21:59:00 +0200 (Sat, 23 Oct 2010)
Log Message:
-----------
Fix: the "Update IRC nick" worked only for the current logged user.
Modified Paths:
--------------
trunk/vhffs-panel/templates/user/ircnick.tmpl
trunk/vhffs-panel/user/prefs.pl
Modified: trunk/vhffs-panel/templates/user/ircnick.tmpl
===================================================================
--- trunk/vhffs-panel/templates/user/ircnick.tmpl 2010-10-10 06:46:41 UTC (rev 1630)
+++ trunk/vhffs-panel/templates/user/ircnick.tmpl 2010-10-23 19:59:00 UTC (rev 1631)
@@ -1,5 +1,6 @@
<h2><TMPL_I18N KEY="IRC nick"></h2>
<form method="post" action="#">
+ <input type="hidden" name="name" value="<TMPL_VAR ESCAPE=1 NAME="VALUE_USERNAME">"/>
<p><label for="user_ircnick"><TMPL_VAR ESCAPE=1 NAME="TEXT_IRCNICK"> :</label>
<input name="ircnick" id="user_ircnick" value="<TMPL_VAR ESCAPE=1 NAME="VALUE_IRCNICK">" type="text" />
</p>
Modified: trunk/vhffs-panel/user/prefs.pl
===================================================================
--- trunk/vhffs-panel/user/prefs.pl 2010-10-10 06:46:41 UTC (rev 1630)
+++ trunk/vhffs-panel/user/prefs.pl 2010-10-23 19:59:00 UTC (rev 1631)
@@ -482,7 +482,8 @@
$template->param( USER_MODERATOR => Vhffs::Constants::USER_MODERATOR );
$template->param( USER_ADMIN => Vhffs::Constants::USER_ADMIN );
$template->param( TEXT_IRCNICK => gettext('IRC nick') );
- $template->param( VALUE_IRCNICK => $userp->get_ircnick);
+ $template->param( VALUE_USERNAME => $userp->get_username );
+ $template->param( VALUE_IRCNICK => $userp->get_ircnick );
}
}