Merge lp:~edb/quam-plures/new_group_on_install into lp:quam-plures

Proposed by EdB
Status: Merged
Merged at revision: 7653
Proposed branch: lp:~edb/quam-plures/new_group_on_install
Merge into: lp:quam-plures
Diff against target: 24 lines (+9/-2)
1 file modified
qp_install/_functions_install.php (+9/-2)
To merge this branch: bzr merge lp:~edb/quam-plures/new_group_on_install
Reviewer Review Type Date Requested Status
Quam Plures Core Team Pending
Review via email: mp+117524@code.launchpad.net

Description of the change

http://forums.quamplures.net/viewtopic.php?f=11&t=1180

Sets "group for new registrants" to g-1 if no sample posts are installed, g-4 if they are.

To post a comment you must log in.
7647. By EdB

adding core updates

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'qp_install/_functions_install.php'
2--- qp_install/_functions_install.php 2012-07-24 09:39:41 +0000
3+++ qp_install/_functions_install.php 2012-08-02 15:49:23 +0000
4@@ -311,12 +311,19 @@
5 */
6 function create_default_settings( $override = array() )
7 {
8- global $DB, $app_db_version, $default_locale, $Group_Admins;
9+ global $DB, $app_db_version, $default_locale, $create_sample_contents;
10+
11+ // default group is 1 unless we are installing sample contents
12+ $default_group_ID = 1;
13+ if( $create_sample_contents )
14+ {
15+ $default_group_ID = 4;
16+ }
17
18 $defaults = array(
19 'db_version' => $app_db_version,
20 'default_locale' => $default_locale,
21- 'newusers_grp_ID' => $Group_Admins->ID,
22+ 'newusers_grp_ID' => $default_group_ID,
23 'default_blog_ID' => 1,
24 );
25

Subscribers

People subscribed via source and target branches