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
=== modified file 'qp_install/_functions_install.php'
--- qp_install/_functions_install.php 2012-07-24 09:39:41 +0000
+++ qp_install/_functions_install.php 2012-08-02 15:49:23 +0000
@@ -311,12 +311,19 @@
311 */311 */
312function create_default_settings( $override = array() )312function create_default_settings( $override = array() )
313{313{
314 global $DB, $app_db_version, $default_locale, $Group_Admins;314 global $DB, $app_db_version, $default_locale, $create_sample_contents;
315
316 // default group is 1 unless we are installing sample contents
317 $default_group_ID = 1;
318 if( $create_sample_contents )
319 {
320 $default_group_ID = 4;
321 }
315322
316 $defaults = array(323 $defaults = array(
317 'db_version' => $app_db_version,324 'db_version' => $app_db_version,
318 'default_locale' => $default_locale,325 'default_locale' => $default_locale,
319 'newusers_grp_ID' => $Group_Admins->ID,326 'newusers_grp_ID' => $default_group_ID,
320 'default_blog_ID' => 1,327 'default_blog_ID' => 1,
321 );328 );
322329

Subscribers

People subscribed via source and target branches