From f5d2eef55c89b7f1a5549704705c25fd7f0c0185 Mon Sep 17 00:00:00 2001
From: Aleksander Machniak <alec@alec.pl>
Date: Tue, 31 Dec 2013 07:58:29 -0500
Subject: [PATCH] More CS fixes, replace global $CONFIG usage with $RCMAIL->config->get()

---
 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 dbf56e5..e85d82c 100644
--- a/program/include/rcmail.php
+++ b/program/include/rcmail.php
@@ -980,6 +980,19 @@
 
 
     /**
+     * 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

--
Gitblit v1.9.1