From 9f690f190f1aa503dfc6270e3a97d96196ae3cff Mon Sep 17 00:00:00 2001 From: Andrey Andreev Date: Mon, 21 Jan 2013 15:30:25 +0200 Subject: Partially implement PR #2155 --- system/core/Log.php | 2 ++ 1 file changed, 2 insertions(+) (limited to 'system/core/Log.php') diff --git a/system/core/Log.php b/system/core/Log.php index 9dabfe6f2..cd3c17e1e 100644 --- a/system/core/Log.php +++ b/system/core/Log.php @@ -97,6 +97,8 @@ class CI_Log { $this->_log_path = ($config['log_path'] !== '') ? $config['log_path'] : APPPATH.'logs/'; + file_exists($this->_log_path) OR mkdir($this->_log_path, DIR_WRITE_MODE, TRUE); + if ( ! is_dir($this->_log_path) OR ! is_really_writable($this->_log_path)) { $this->_enabled = FALSE; -- cgit v1.2.3-24-g4f1b