diff options
Diffstat (limited to 'inc/functions.php')
| -rw-r--r-- | inc/functions.php | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/inc/functions.php b/inc/functions.php index d3be5d1c..20118599 100644 --- a/inc/functions.php +++ b/inc/functions.php @@ -9,7 +9,7 @@ loadConfig(); function loadConfig() { - global $board, $config, $__ip; + global $board, $config, $__ip, $debug; require 'config.php'; if (file_exists('inc/instance-config.php')) { @@ -19,6 +19,12 @@ require $board['dir'] . '/config.php'; } + if($config['debug']) { + if(!isset($debug)) + $debug = Array('sql'); + $debug['start'] = time(); + } + if(!isset($config['url_stylesheet'])) $config['url_stylesheet'] = $config['root'] . 'style.css'; if(!isset($config['url_javascript'])) |
