From 758044d69ec31024f01d8832c590bb6a64e4b851 Mon Sep 17 00:00:00 2001 From: Aleksander Machniak Date: Tue, 28 Nov 2017 16:32:01 +0100 Subject: [PATCH] Add skin config options to dont_override list ... so e.g. options in user preferences will be hidden. --- program/include/rcmail_output_html.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/program/include/rcmail_output_html.php b/program/include/rcmail_output_html.php index c7cf011db..00ead1ba0 100644 --- a/program/include/rcmail_output_html.php +++ b/program/include/rcmail_output_html.php @@ -305,6 +305,11 @@ EOF; foreach ((array) $meta['config'] as $key => $value) { $this->config->set($key, $value, true); } + + if (!empty($meta['config'])) { + $value = array_merge((array) $this->config->get('dont_override'), array_keys($meta['config'])); + $this->config->set('dont_override', $value, true); + } } /**