diff options
author | Andrey Andreev <narf@bofh.bg> | 2012-11-01 16:33:58 +0100 |
---|---|---|
committer | Andrey Andreev <narf@bofh.bg> | 2012-11-01 16:33:58 +0100 |
commit | c5536aac5752054f7f76e448d58b86407d8f574e (patch) | |
tree | 6983129569e65a7744323a57d786b53433c5c746 /system/libraries/Log.php | |
parent | 1a9b7e0d1f96b3cee5692f582d860dca4978dee5 (diff) |
Manually apply PR #1594 (fixing phpdoc page-level generation/warnings)
Also partially fixes issue #1295, fixes inconsistencies in some page-level docblocks and adds include checks in language files.
Diffstat (limited to 'system/libraries/Log.php')
-rw-r--r-- | system/libraries/Log.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/system/libraries/Log.php b/system/libraries/Log.php index baac80121..a4dd47f86 100644 --- a/system/libraries/Log.php +++ b/system/libraries/Log.php @@ -1,4 +1,4 @@ -<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); +<?php /** * CodeIgniter * @@ -24,6 +24,7 @@ * @since Version 1.0 * @filesource */ +defined('BASEPATH') OR exit('No direct script access allowed'); /** * Logging Class @@ -151,7 +152,7 @@ class CI_Log { if ( ! file_exists($filepath)) { $newfile = TRUE; - $message .= '<'."?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); ?".">\n\n"; + $message .= '<'."?php if defined('BASEPATH') OR exit('No direct script access allowed'); ?".">\n\n"; } if ( ! $fp = @fopen($filepath, FOPEN_WRITE_CREATE)) |