summaryrefslogtreecommitdiffstats
path: root/system/core
diff options
context:
space:
mode:
authorChris Passas <cpassas@gmail.com>2013-02-14 14:57:49 +0100
committerChris Passas <cpassas@gmail.com>2013-02-14 14:57:49 +0100
commit2718f6c8a5bbae38b7a7f875c6eef40739ce8ee4 (patch)
tree55aa27107723bb7188854ece5fe8c045fd59069d /system/core
parent0bd6b28045c9b9a820e580b3f651f474b60348a3 (diff)
Update system/core/Log.php
Added ltrim() as requested to strip '.' incase it's added by mistake.
Diffstat (limited to 'system/core')
-rw-r--r--system/core/Log.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/system/core/Log.php b/system/core/Log.php
index 7572d2ac6..abc7b2494 100644
--- a/system/core/Log.php
+++ b/system/core/Log.php
@@ -104,7 +104,7 @@ class CI_Log {
$this->_log_path = ($config['log_path'] !== '') ? $config['log_path'] : APPPATH.'logs/';
- $this->_log_ext = ($config['log_file_extension'] !== '') ? $config['log_file_extension'] : $this->_log_ext;
+ $this->_log_ext = ($config['log_file_extension'] !== '') ? ltrim($config['log_file_extension'],'.') : $this->_log_ext;
file_exists($this->_log_path) OR mkdir($this->_log_path, DIR_WRITE_MODE, TRUE);