Taufan Aditya | 7756af5 | 2012-05-15 23:57:05 +0700 | [diff] [blame] | 1 | <?php |
2 | |||||
3 | class Mock_Core_Utf8 extends CI_Utf8 { | ||||
Andrey Andreev | f243ce1 | 2012-06-09 23:34:21 +0300 | [diff] [blame] | 4 | |
Taufan Aditya | 7756af5 | 2012-05-15 23:57:05 +0700 | [diff] [blame] | 5 | /** |
Andrey Andreev | eb555ed | 2014-02-12 19:25:01 +0200 | [diff] [blame] | 6 | * We need to define UTF8_ENABLED the same way that |
7 | * CI_Utf8 constructor does. | ||||
Taufan Aditya | 7756af5 | 2012-05-15 23:57:05 +0700 | [diff] [blame] | 8 | */ |
9 | public function __construct() | ||||
10 | { | ||||
Andrey Andreev | bb3edf1 | 2014-02-20 17:51:41 +0200 | [diff] [blame] | 11 | if (defined('UTF8_ENABLED')) |
12 | { | ||||
13 | return; | ||||
14 | } | ||||
15 | |||||
16 | parent::__construct(); | ||||
Taufan Aditya | 7756af5 | 2012-05-15 23:57:05 +0700 | [diff] [blame] | 17 | } |
18 | |||||
Taufan Aditya | 7756af5 | 2012-05-15 23:57:05 +0700 | [diff] [blame] | 19 | } |