Link global config array with class props (to be removed)

release-0.6
thomascube 17 years ago
parent 51cca60914
commit 033478df29

@ -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'));
}

@ -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;
}

Loading…
Cancel
Save