summaryrefslogtreecommitdiff
path: root/install.php
diff options
context:
space:
mode:
authorAnika Henke <anika@selfthinker.org>2013-11-17 13:20:31 -0800
committerAnika Henke <anika@selfthinker.org>2013-11-17 13:20:31 -0800
commit9d6252a78a90078dd9f27e0cdedd4ea568b0a983 (patch)
tree4f5f0ee624c77dba48f06e6b6ab05dc57e682e7d /install.php
parent28ad2ce3c7b348afcc1efbae4fc64a7ea31585ee (diff)
parentab9346edc1621443d00551060b6db2d544ad3a71 (diff)
downloadrpg-9d6252a78a90078dd9f27e0cdedd4ea568b0a983.tar.gz
rpg-9d6252a78a90078dd9f27e0cdedd4ea568b0a983.tar.bz2
Merge pull request #430 from splitbrain/change-installer-allowreg
swapped logic for allowing/disabling registration in installer
Diffstat (limited to 'install.php')
-rw-r--r--install.php10
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);