[geeklog-cvs] geeklog: Display group names with an uppercase first letter ever...

geeklog-cvs at lists.geeklog.net geeklog-cvs at lists.geeklog.net
Sun Feb 1 07:35:11 EST 2009


details:   http://project.geeklog.net/cgi-bin/hgweb.cgi/rev/3e15885d32b4
changeset: 6747:3e15885d32b4
user:      Dirk Haun <dirk at haun-online.de>
date:      Sun Feb 01 13:34:44 2009 +0100
description:
Display group names with an uppercase first letter everywhere

diffstat:

4 files changed, 11 insertions(+), 3 deletions(-)
public_html/admin/mail.php |    4 ++--
public_html/docs/history   |    1 +
system/lib-admin.php       |    7 +++++++
system/lib-security.php    |    2 +-

diffs (61 lines):

diff -r ae2e81cceb5c -r 3e15885d32b4 public_html/admin/mail.php
--- a/public_html/admin/mail.php	Sun Feb 01 13:19:00 2009 +0100
+++ b/public_html/admin/mail.php	Sun Feb 01 13:34:44 2009 +0100
@@ -76,8 +76,8 @@
     $group_options = '';
     foreach ($thisUsersGroups as $groupName => $groupID) {
         if ($groupName != 'All Users') {
-            $group_options .= '<option value="' . $groupID . '">' . $groupName
-                           . '</option>';
+            $group_options .= '<option value="' . $groupID . '">'
+                           . ucwords($groupName) . '</option>';
         }
     }
 
diff -r ae2e81cceb5c -r 3e15885d32b4 public_html/docs/history
--- a/public_html/docs/history	Sun Feb 01 13:19:00 2009 +0100
+++ b/public_html/docs/history	Sun Feb 01 13:34:44 2009 +0100
@@ -11,6 +11,7 @@
 + (TBD) Comment moderation and editable comments, by Jared Wenerd
 
 Other changes:
+- Display group names with an uppercase first letter everywhere [Dirk]
 - Added an ISO 8601-ish format to the gl_dateformats table [Dirk]
 - Let users with user.mail permissions only email groups that they are in
   themselves [Dirk]
diff -r ae2e81cceb5c -r 3e15885d32b4 system/lib-admin.php
--- a/system/lib-admin.php	Sun Feb 01 13:19:00 2009 +0100
+++ b/system/lib-admin.php	Sun Feb 01 13:34:44 2009 +0100
@@ -745,6 +745,9 @@
                         . '<input type="hidden" name="groups[]" value="'
                         . $A['grp_id'] . '"' . XHTML . '>';
                 break;
+            case 'grp_name':
+                $retval = ucwords($fieldvalue);
+                break;
             default:
                 $retval = $fieldvalue;
                 break;
@@ -1186,6 +1189,10 @@
             }
             break;
 
+        case 'grp_name':
+            $retval = ucwords($fieldvalue);
+            break;
+
         default:
             $retval = $fieldvalue;
             break;
diff -r ae2e81cceb5c -r 3e15885d32b4 system/lib-security.php
--- a/system/lib-security.php	Sun Feb 01 13:19:00 2009 +0100
+++ b/system/lib-security.php	Sun Feb 01 13:34:44 2009 +0100
@@ -1031,7 +1031,7 @@
             if ($group_id == $ug_id) {
                 $groupdd .= ' selected="selected"';
             }
-            $groupdd .= '>' . $ug_name . '</option>' . LB;
+            $groupdd .= '>' . ucwords($ug_name) . '</option>' . LB;
         }
         $groupdd .= '</select>' . LB;
     } else {



More information about the geeklog-cvs mailing list