[patch]Convert charset of group name in ticket/people.php

張良文 <[email protected]> Wed, 8 Dec 2004 17:39:39 +0800
Newsgroups gmane.comp.horde.whups
Message-ID <[email protected]>
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));
         }
-- 
Whups mailing list - Join the hunt: http://horde.org/bounties/#whups
Frequently Asked Questions: http://horde.org/faq/
To unsubscribe, mail: [email protected]