aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--settings.global.ini7
-rw-r--r--templates/settings_field.php2
2 files changed, 6 insertions, 3 deletions
diff --git a/settings.global.ini b/settings.global.ini
index 79699d1..dbad00e 100644
--- a/settings.global.ini
+++ b/settings.global.ini
@@ -1,3 +1,6 @@
+# please put double quotes around everything. php does weird things to unquoted
+# ini values sometimes and it's not worth the debugging headache
+
[instance.name]
name = "Instance name"
description = "Shown in the page header and instance information"
@@ -11,5 +14,5 @@ default = "A Digitigrade instance"
[instance.openRegistrations]
name = "Open registrations"
description = "Allow new users to sign up?"
-default = false
-type = boolean
+default = "false"
+type = "boolean"
diff --git a/templates/settings_field.php b/templates/settings_field.php
index 15b6c71..c0f0f7d 100644
--- a/templates/settings_field.php
+++ b/templates/settings_field.php
@@ -17,7 +17,7 @@ $fieldName = str_replace('.', '<DOT>', $key);
<?php if ($inputType == 'select'): ?>
- <select id="<?= $id ?>" name="<?= $fieldName ?>">
+ <select id="<?= $id ?>" name="<?= $fieldName ?>" autocomplete="off">
<?php foreach ($options as $o): ?>
<option <?= $value == $o ? 'selected' : '' ?>><?= $o ?></option>
<?php endforeach; ?>