Version 0.9 ()
------------------------------------------------------------------------
+ * Added fix for wrong language in permission groups (were created in the
+ language that the browser of the installing user has (flotsam)
+
* Added Voodoo Wiki/XML importer, hooks into static page plugin.
(Tim Putnam)
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 />';
FROM {$serendipity['dbPrefix']}groups AS g
ORDER BY g.name", false, 'assoc');
}
-
+ if (is_array($groups) {
+ foreach ($groups as $k => $v) {
+ if ('USERLEVEL_' == substr($v['confvalue'], 0, 10)) {
+ $groups[$k]['confvalue'] = constant($v['confvalue']);
+ }
+ if ('USERLEVEL_' == substr($v['name'], 0, 10)) {
+ $groups[$k]['name'] = constant($v['name']);
+ }
+ }
+ }
return $groups;
}