summaryrefslogtreecommitdiffstats
path: root/system/core
diff options
context:
space:
mode:
authortiyowan <tiyowan@gmail.com>2012-03-12 17:24:13 +0100
committertiyowan <tiyowan@gmail.com>2012-03-12 17:31:34 +0100
commit6da86c89f8b0ecb8bee11e6fa777dac7f6052236 (patch)
tree8a372dbc86d4a2f3e0c7de0385b09fa414bc5ea4 /system/core
parent25cb81297c4458f80bee353fd645861a8a90ee33 (diff)
Re-add MB_ENABLED constant
Diffstat (limited to 'system/core')
-rw-r--r--system/core/Utf8.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/system/core/Utf8.php b/system/core/Utf8.php
index 21bac6078..0be42adb4 100644
--- a/system/core/Utf8.php
+++ b/system/core/Utf8.php
@@ -64,8 +64,13 @@ class CI_Utf8 {
// set internal encoding for multibyte string functions if necessary
if (extension_loaded('mbstring'))
{
+ define('MB_ENABLED', TRUE)
mb_internal_encoding('UTF-8');
}
+ else
+ {
+ define('MB_ENABLED', FALSE);
+ }
}
else
{