diff options
author | Hamza Bhatti <tiyowan@gmail.com> | 2012-03-12 12:31:13 +0100 |
---|---|---|
committer | tiyowan <tiyowan@gmail.com> | 2012-03-12 17:31:33 +0100 |
commit | 25cb81297c4458f80bee353fd645861a8a90ee33 (patch) | |
tree | 6bfcb959d5e30e84e1fe4e1cc5743d961806ae5f /system/core/Utf8.php | |
parent | a6fd531e348bd345bbbd06b7c5504090d9bd7ca4 (diff) |
Re-add UTF8_ENABLED constant
Diffstat (limited to 'system/core/Utf8.php')
-rw-r--r-- | system/core/Utf8.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/system/core/Utf8.php b/system/core/Utf8.php index 1d5dfc20d..21bac6078 100644 --- a/system/core/Utf8.php +++ b/system/core/Utf8.php @@ -57,7 +57,8 @@ class CI_Utf8 { && @ini_get('mbstring.func_overload') != 1 // Multibyte string function overloading cannot be enabled && $CFG->item('charset') === 'UTF-8' // Application charset must be UTF-8 ) - { + { + define('UTF8_ENABLED', TRUE); log_message('debug', 'UTF-8 Support Enabled'); // set internal encoding for multibyte string functions if necessary @@ -68,6 +69,7 @@ class CI_Utf8 { } else { + define('UTF8_ENABLED', FALSE); log_message('debug', 'UTF-8 Support Disabled'); } } |