From 971a473e09334d48d68eecff4dfadadfb342f662 Mon Sep 17 00:00:00 2001 From: Savetheinternet Date: Wed, 16 Feb 2011 19:29:56 +1100 Subject: Fixed up a small config bug --- inc/functions.php | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'inc/functions.php') diff --git a/inc/functions.php b/inc/functions.php index 0c760ae6..af16d5c3 100644 --- a/inc/functions.php +++ b/inc/functions.php @@ -42,6 +42,15 @@ $config['image_deleted'] = $config['dir']['static'] . 'deleted.png'; if(!isset($config['image_zip'])) $config['image_zip'] = $config['dir']['static'] . 'zip.png'; + + if($config['root_file']) { + chdir($config['root_file']); + } + + if($config['verbose_errors']) { + error_reporting(E_ALL); + ini_set('display_errors', 1); + } } function sprintf3($str, $vars, $delim = '%') { -- cgit v1.3