diff options
author | Bharat Mediratta <bharat@menalto.com> | 2008-11-02 18:57:50 +0000 |
---|---|---|
committer | Bharat Mediratta <bharat@menalto.com> | 2008-11-02 18:57:50 +0000 |
commit | 3ec437029bc23fff6560871f67171c3990205477 (patch) | |
tree | 0265f9a0ff4a4cee6367e7622bbc8375da822f5b | |
parent | bd8cd9364c8396aeb3d56572d116fb8c5af1f1b4 (diff) |
Add mptt and forge modules to the module load list
disable logging if the log dir is not writable.
-rw-r--r-- | core/config/config.php | 7 |
1 files changed, 6 insertions, 1 deletions
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', ); |