diff options
author | Andrey Andreev <narf@bofh.bg> | 2012-03-12 20:55:07 +0100 |
---|---|---|
committer | Andrey Andreev <narf@bofh.bg> | 2012-03-12 20:55:07 +0100 |
commit | 93dfe4123af679a4cf475f5e38e20dda0cbe9e75 (patch) | |
tree | 09e79cc0987d752d1f08256853411251f437ca95 /system/libraries/Trackback.php | |
parent | 09aefde6a7260cbc694f2d23d0842e7a5089ad67 (diff) | |
parent | 4efd1cf37fb5518ae81369f9066cea9b7246caee (diff) |
Merge pull request #1174 from tiyowan/remove-defines
Use the MB_ENABLED constant for mb checks instead of multiple function_exists()
Diffstat (limited to 'system/libraries/Trackback.php')
-rw-r--r-- | system/libraries/Trackback.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/system/libraries/Trackback.php b/system/libraries/Trackback.php index 3bea5f9b8..be1de6f3f 100644 --- a/system/libraries/Trackback.php +++ b/system/libraries/Trackback.php @@ -141,7 +141,7 @@ class CI_Trackback { $this->data['charset'] = ( ! isset($_POST['charset'])) ? 'auto' : strtoupper(trim($_POST['charset'])); - if ($val != 'url' && function_exists('mb_convert_encoding')) + if ($val != 'url' && MB_ENABLED === TRUE) { $_POST[$val] = mb_convert_encoding($_POST[$val], $this->charset, $this->data['charset']); } |