Link global config array with class props (to be removed)
| | |
| | | |
| | | /** |
| | | * 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')); |
| | | } |
| | |
| | | |
| | | /** |
| | | * Load config from local config file |
| | | * |
| | | * @todo Remove global $CONFIG |
| | | */ |
| | | private function load() |
| | | { |
| | |
| | | |
| | | // clear output buffer |
| | | ob_end_clean(); |
| | | |
| | | // export config data |
| | | $GLOBALS['CONFIG'] = &$this->prop; |
| | | } |
| | | |
| | | |