Commit 96167745 authored by Falko Timme's avatar Falko Timme

- Fixed FS#2182.

parent 4d69f4fa
......@@ -47,12 +47,10 @@ class getconf {
public function get_global_config($section = '') {
global $app;
if(isset($this->config['global'])) {
if(!isset($this->config['global'])) {
$app->uses('ini_parser');
$tmp = $app->db->queryOneRecord('SELECT config FROM sys_ini WHERE sysini_id = 1');
$this->config['global'] = $app->ini_parser->parse_ini_string(stripslashes($tmp['config']));
} else {
$this->config['global'] = NULL;
}
return ($section == '') ? $this->config['global'] : $this->config['global'][$section];
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment