From 5852295860d51040f69bbaf957cc8ed6bfd7358b Mon Sep 17 00:00:00 2001 From: Dylan William Hardison Date: Fri, 30 Oct 2015 21:03:58 -0400 Subject: Bug 1218457 - Allow localconfig to override (force) certain data/params values --- template/en/default/admin/params/common.html.tmpl | 12 +++++++++++- template/en/default/setup/strings.txt.pl | 5 +++++ 2 files changed, 16 insertions(+), 1 deletion(-) (limited to 'template/en/default') 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 @@
[% FOREACH param = panel.param_list %] -
[% param.name FILTER html %]
+
[% param.name FILTER html %] + [% IF panel.param_override.${param.name}.defined %] + (localconfig override) + [% END %] +
[% panel.param_descs.${param.name} FILTER none %]

+ [% IF panel.param_override.${param.name}.defined %] + + + [% NEXT %] + [% END %] [% IF param.type == "t" %] 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 @@ -239,6 +239,11 @@ validation of encrypted tokens. These tokens are used to implement 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. -- cgit v1.2.3-24-g4f1b