diff options
author | Aleksander Machniak <alec@alec.pl> | 2013-12-31 13:58:29 +0100 |
---|---|---|
committer | Aleksander Machniak <alec@alec.pl> | 2013-12-31 13:58:29 +0100 |
commit | f5d2eef55c89b7f1a5549704705c25fd7f0c0185 (patch) | |
tree | cadb85945d32237ea37d50ad0b8d400d6b19d2e2 /program/include/rcmail.php | |
parent | ddc161721cdec783d58b43a265854b4eac388c13 (diff) |
More CS fixes, replace global $CONFIG usage with $RCMAIL->config->get()
Diffstat (limited to 'program/include/rcmail.php')
-rw-r--r-- | program/include/rcmail.php | 13 |
1 files changed, 13 insertions, 0 deletions
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 @@ -980,6 +980,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 * * @return string Date |