summaryrefslogtreecommitdiffstats
path: root/system/core
diff options
context:
space:
mode:
Diffstat (limited to 'system/core')
-rw-r--r--system/core/Log.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/system/core/Log.php b/system/core/Log.php
index abc7b2494..7b2082a6c 100644
--- a/system/core/Log.php
+++ b/system/core/Log.php
@@ -162,7 +162,10 @@ class CI_Log {
if ( ! file_exists($filepath))
{
$newfile = TRUE;
- $message .= '<'."?php defined('BASEPATH') OR exit('No direct script access allowed'); ?".">\n\n";
+ if($this->_log_ext === 'php')
+ {
+ $message .= '<'."?php defined('BASEPATH') OR exit('No direct script access allowed'); ?".">\n\n";
+ }
}
if ( ! $fp = @fopen($filepath, FOPEN_WRITE_CREATE))