Page 1 of 1

[fixed] Language bug in permission groups

Posted: Mon Jun 27, 2005 8:05 pm
by winkiller
just installed the current trunk/, everything went fine.

I suppose the installation was in german because of my browser settings, but I chose English as language.
when i go to manage users I get:

access level: admin/chief ed/standard ed
group memberships: admin/chef-redakteur/redakteur

Posted: Tue Jun 28, 2005 4:11 pm
by winkiller
RFC: Fix

Fixed: for new installations
Not fixed: updating current tables
Approved: by nobody yet ;)

Code: Select all

--- installer.inc.php	2005-06-28 16:04:40.000000000 +0200
+++ installer2.inc.php	2005-06-28 16:10:29.000000000 +0200
@@ -417,9 +417,9 @@
         serendipity_set_user_var('mail_comments', $mail_comments, $authorid);
         serendipity_set_user_var('mail_trackbacks', $mail_comments, $authorid);
         serendipity_set_user_var('right_publish', 1, $authorid);
-        serendipity_addDefaultGroup(USERLEVEL_EDITOR_DESC, USERLEVEL_EDITOR);
-        serendipity_addDefaultGroup(USERLEVEL_CHIEF_DESC,  USERLEVEL_CHIEF);
-        serendipity_addDefaultGroup(USERLEVEL_ADMIN_DESC,  USERLEVEL_ADMIN);
+        serendipity_addDefaultGroup(USERLEVEL_EDITOR_DESC, 'USERLEVEL_EDITOR_DESC');
+        serendipity_addDefaultGroup(USERLEVEL_CHIEF_DESC,  'USERLEVEL_CHIEF_DESC');
+        serendipity_addDefaultGroup(USERLEVEL_ADMIN_DESC,  'USERLEVEL_ADMIN_DESC');
 
         echo ' <strong>' . DONE . '</strong><br />';
 

Code: Select all

--- functions_config.inc.php	2005-06-28 16:04:52.000000000 +0200
+++ functions_config2.inc.php	2005-06-28 16:12:27.000000000 +0200
@@ -701,6 +701,12 @@
                                       ORDER BY  g.name", false, 'assoc');
     }
     
+    if (is_array($groups) {
+        foreach ($groups as $k => $v) {
+            $groups[$k]['confvalue'] = constant($v['confvalue']);
+            $groups[$k]['name'] = constant($v['name']);
+        }
+    }
     return $groups;
 }