[whups] [patch]Convert charset of group name in ticket/people.php
=?big5?b?sWmofaTl?=
david at tmv.gov.tw
Wed Dec 8 01:39:39 PST 2004
Hi there:
The group name does not convert to original charset in ticket/people.php
Here is what i patched.
David Chang
--- ./people.php.orig Wed Dec 8 17:32:13 2004
+++ people.php Wed Dec 8 17:36:33 2004
@@ -40,7 +40,7 @@
$f_groups = array();
if (count($mygroups)) {
foreach ($mygroups as $id => $group) {
- $f_groups['group:' . $id] = $group;
+ $f_groups['group:' . $id] = String::convertCharset($group,
$GLOBALS['conf']['sql']['charset']);
}
}
@@ -72,7 +72,7 @@
$GLOBALS['perms']->hasPermission('whups:hiddenComments',
Auth::getAuth(), PERMS_EDIT)) {
$grouplist = array(0 => _("Any Group"));
foreach ($mygroups as $group) {
- $grouplist[$group] = $group;
+ $grouplist[$group] = String::convertCharset($group,
$GLOBALS['conf']['sql']['charset']);
}
$this->addVariable(_("Viewable only by members of"), 'group',
'enum', true, false, null, array($grouplist));
}
More information about the whups
mailing list