From f5d2eef55c89b7f1a5549704705c25fd7f0c0185 Mon Sep 17 00:00:00 2001 From: Aleksander Machniak Date: Tue, 31 Dec 2013 13:58:29 +0100 Subject: More CS fixes, replace global $CONFIG usage with $RCMAIL->config->get() --- program/include/rcmail.php | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'program/include/rcmail.php') diff --git a/program/include/rcmail.php b/program/include/rcmail.php index dbf56e55f..e85d82cde 100644 --- a/program/include/rcmail.php +++ b/program/include/rcmail.php @@ -979,6 +979,19 @@ class rcmail extends rcube } + /** + * Set environment variables for specified config options + */ + public function set_env_config($options) + { + foreach ((array) $options as $option) { + if ($this->config->get($option)) { + $this->output->set_env($option, true); + } + } + } + + /** * Returns RFC2822 formatted current date in user's timezone * -- cgit v1.2.3