From 3ec437029bc23fff6560871f67171c3990205477 Mon Sep 17 00:00:00 2001 From: Bharat Mediratta Date: Sun, 2 Nov 2008 18:57:50 +0000 Subject: Add mptt and forge modules to the module load list disable logging if the log dir is not writable. --- core/config/config.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'core') diff --git a/core/config/config.php b/core/config/config.php index efd7b2e8..afa84a82 100644 --- a/core/config/config.php +++ b/core/config/config.php @@ -86,7 +86,10 @@ $config['log_threshold'] = 4; /** * Message logging directory. */ -$config['log_directory'] = VARPATH . 'logs'; +$config['log_directory'] = VARPATH . "logs"; +if (!is_writable($config['log_directory'])) { + $config['log_threshold'] = 0; +} /** * Enable or disable displaying of Kohana error pages. This will not affect @@ -117,4 +120,6 @@ $config['modules'] = array ( MODPATH . 'gallery_unit_test', MODPATH . 'unit_test', + MODPATH . 'mptt', + MODPATH . 'forge', ); -- cgit v1.2.3