diff options
author | Anika Henke <anika@selfthinker.org> | 2013-11-17 20:53:46 +0000 |
---|---|---|
committer | Anika Henke <anika@selfthinker.org> | 2013-11-17 20:53:46 +0000 |
commit | ab9346edc1621443d00551060b6db2d544ad3a71 (patch) | |
tree | 9ecb6bed347dc03a45b4a0e4be7bb372033d2f8c /install.php | |
parent | b5a4e4fb55eff9a1c6c300b61e073677f94fd6ec (diff) | |
download | rpg-ab9346edc1621443d00551060b6db2d544ad3a71.tar.gz rpg-ab9346edc1621443d00551060b6db2d544ad3a71.tar.bz2 |
swapped logic for allowing/disabling registration in installer
Diffstat (limited to 'install.php')
-rw-r--r-- | install.php | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/install.php b/install.php index 540e9c9a6..a6032bebe 100644 --- a/install.php +++ b/install.php @@ -207,9 +207,9 @@ function print_form($d){ <option value="2" <?php echo ($d['policy'] == 2)?'selected="selected"':'' ?>><?php echo $lang['i_pol2']?></option> </select> - <label for="disablereg"> - <input type="checkbox" name="d[disablereg]" id="disablereg" <?php echo(($d['disablereg'] ? ' checked="checked"' : ''));?> /> - <?php echo $lang['i_disablereg']?> + <label for="allowreg"> + <input type="checkbox" name="d[allowreg]" id="allowreg" <?php echo(($d['allowreg'] ? ' checked="checked"' : ''));?> /> + <?php echo $lang['i_allowreg']?> </label> </fieldset> </fieldset> @@ -274,7 +274,7 @@ function check_data(&$d){ 'password' => '', 'confirm' => '', 'policy' => '0', - 'disablereg'=> '0', + 'allowreg' => '0', 'license' => 'cc-by-sa' ); global $lang; @@ -356,7 +356,7 @@ EOT; $output .= '$conf[\'useacl\'] = 1'.";\n"; $output .= "\$conf['superuser'] = '@admin';\n"; } - if($d['disablereg']){ + if(!$d['allowreg']){ $output .= '$conf[\'disableactions\'] = \'register\''.";\n"; } $ok = $ok && fileWrite(DOKU_LOCAL.'local.php',$output); |