diff options
| author | thomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2008-05-15 20:05:20 +0000 |
|---|---|---|
| committer | thomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2008-05-15 20:05:20 +0000 |
| commit | 5546f92cf670f15f8061b7cc5958cee01520b4f2 (patch) | |
| tree | c92f96e174672ce433b60cad60eea289aec71f76 /roundcubemail/program/include | |
| parent | 7ee6704c080c5cf5816f6c6d7f4449d755f51bed (diff) | |
Link global config array with class props (to be removed)
git-svn-id: https://svn.roundcube.net/trunk@1392 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program/include')
| -rw-r--r-- | roundcubemail/program/include/rcmail.php | 3 | ||||
| -rw-r--r-- | roundcubemail/program/include/rcube_config.php | 5 |
2 files changed, 5 insertions, 3 deletions
diff --git a/roundcubemail/program/include/rcmail.php b/roundcubemail/program/include/rcmail.php index ccd46d6cb..5bde8d465 100644 --- a/roundcubemail/program/include/rcmail.php +++ b/roundcubemail/program/include/rcmail.php @@ -62,14 +62,11 @@ class rcmail /** * Private constructor - * - * @todo Remove global $CONFIG */ private function __construct() { // load configuration $this->config = new rcube_config(); - $GLOBALS['CONFIG'] = $this->config->all(); register_shutdown_function(array($this, 'shutdown')); } diff --git a/roundcubemail/program/include/rcube_config.php b/roundcubemail/program/include/rcube_config.php index 91e37222c..8e956de1e 100644 --- a/roundcubemail/program/include/rcube_config.php +++ b/roundcubemail/program/include/rcube_config.php @@ -40,6 +40,8 @@ class rcube_config /** * Load config from local config file + * + * @todo Remove global $CONFIG */ private function load() { @@ -80,6 +82,9 @@ class rcube_config // clear output buffer ob_end_clean(); + + // export config data + $GLOBALS['CONFIG'] = &$this->prop; } |
