diff options
| author | Michael Foster <savetheinternet@tinyboard.org> | 2013-08-03 05:41:01 -0400 |
|---|---|---|
| committer | Michael Foster <savetheinternet@tinyboard.org> | 2013-08-03 05:41:01 -0400 |
| commit | 0d1bfa47f1f459b4893426e752ce2d3e9b2de030 (patch) | |
| tree | a299830e1f6eba1ec97fcc12afefa9ac9ce443ca /templates/mod | |
| parent | d4ad874e09f026de2ade18f49797dcac4e65f67b (diff) | |
Web config editor: Write "MOD", "JANITOR", etc. to instance-config instead of just int representations
Diffstat (limited to 'templates/mod')
| -rw-r--r-- | templates/mod/config-editor.html | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/mod/config-editor.html b/templates/mod/config-editor.html index 41e01dad..d333e9a2 100644 --- a/templates/mod/config-editor.html +++ b/templates/mod/config-editor.html @@ -25,7 +25,7 @@ <td> {% if var.type == 'string' %} <input name="{{ name }}" type="text" value="{{ var.value|e }}"> - {% elseif var.type == 'integer' and var.name.0 == 'mod' and (var.default in ['JANITOR', 'MOD', 'ADMIN', 'DISABLED'] or var.default|slice(0, 14) == "$config['mod']") and var.value <= constant('DISABLED') %} + {% elseif var.permissions %} <select name="{{ name }}"> <option value="{{ constant('JANITOR') }}"{% if var.value == constant('JANITOR')%} selected{% endif %}>JANITOR</option> <option value="{{ constant('MOD') }}"{% if var.value == constant('MOD')%} selected{% endif %}>MOD</option> |
