summaryrefslogtreecommitdiffstats
path: root/template/en/default
diff options
context:
space:
mode:
authorDylan William Hardison <dylan@hardison.net>2015-10-31 02:03:58 +0100
committerDylan William Hardison <dylan@hardison.net>2015-10-31 02:06:57 +0100
commit5852295860d51040f69bbaf957cc8ed6bfd7358b (patch)
treea0781afa608c45912a97c1b2ac3b75e0d8659f2b /template/en/default
parentf03cb21e297f73fcfca9740ff8e2c525a745d7ad (diff)
downloadbugzilla-5852295860d51040f69bbaf957cc8ed6bfd7358b.tar.gz
bugzilla-5852295860d51040f69bbaf957cc8ed6bfd7358b.tar.xz
Bug 1218457 - Allow localconfig to override (force) certain data/params values
Diffstat (limited to 'template/en/default')
-rw-r--r--template/en/default/admin/params/common.html.tmpl12
-rw-r--r--template/en/default/setup/strings.txt.pl5
2 files changed, 16 insertions, 1 deletions
diff --git a/template/en/default/admin/params/common.html.tmpl b/template/en/default/admin/params/common.html.tmpl
index d86da0dcd..6458ba419 100644
--- a/template/en/default/admin/params/common.html.tmpl
+++ b/template/en/default/admin/params/common.html.tmpl
@@ -28,9 +28,19 @@
<dl>
[% FOREACH param = panel.param_list %]
- <dt id="[% param.name FILTER html %]_desc">[% param.name FILTER html %]</dt>
+ <dt id="[% param.name FILTER html %]_desc">[% param.name FILTER html %]
+ [% IF panel.param_override.${param.name}.defined %]
+ (localconfig override)
+ [% END %]
+ </dt>
<dd>[% panel.param_descs.${param.name} FILTER none %]
<p>
+ [% IF panel.param_override.${param.name}.defined %]
+ <input type="hidden" name="[% param.name FILTER html %] value="[% Param(param.name) FILTER html %]">
+ <input type="text" size="80" readonly
+ id="[% param.name FILTER html %]" value="[% panel.param_override.${param.name} FILTER html %]">
+ [% NEXT %]
+ [% END %]
[% IF param.type == "t" %]
<input type="text" size="80" name="[% param.name FILTER html %]"
id="[% param.name FILTER html %]" value="[% Param(param.name) FILTER html %]">
diff --git a/template/en/default/setup/strings.txt.pl b/template/en/default/setup/strings.txt.pl
index d73d29a26..72ffb4a4d 100644
--- a/template/en/default/setup/strings.txt.pl
+++ b/template/en/default/setup/strings.txt.pl
@@ -240,6 +240,11 @@ security features in Bugzilla, to protect against certain types of attacks.
A random string is generated by default. It's very important that this key
is kept secret. It also must be very long.
END
+ localconfig_param_override => <<'END',
+This hash is used by BMO to override select data/params values on a per-webhead
+basis. Keys set to undef will default to the value in data/params.
+Only the keys listed below can be overridden.
+END
localconfig_use_suexec => <<'END',
Set this to 1 if Bugzilla runs in an Apache SuexecUserGroup environment.