|
134 | 134 | set_exception_handler('_exception_handler'); |
135 | 135 | register_shutdown_function('_shutdown_handler'); |
136 | 136 |
|
| 137 | +if (config_item('beautiful_error_handler')) { |
| 138 | + |
| 139 | + // Require Beautiful ErrorHandler |
| 140 | + require_once "ErrorHandler.php"; |
| 141 | + |
| 142 | + // Use Beautiful Error Handler |
| 143 | + new ErrorHandler; |
| 144 | +} |
| 145 | + |
137 | 146 | /* |
138 | 147 | * ------------------------------------------------------ |
139 | 148 | * Set the subclass_prefix |
|
246 | 255 | ini_set('default_charset', $charset); |
247 | 256 |
|
248 | 257 | if (extension_loaded('mbstring')) { |
249 | | - define('MB_ENABLED', true); |
| 258 | + define('MB_ENABLED', TRUE); |
250 | 259 | // mbstring.internal_encoding is deprecated starting with PHP 5.6 |
251 | 260 | // and it's usage triggers E_DEPRECATED messages. |
252 | | - @ini_set('mbstring.internal_encoding', $charset); |
| 261 | + // @ini_set('mbstring.internal_encoding', $charset); // commented out by developer kwame |
253 | 262 | // This is required for mb_convert_encoding() to strip invalid characters. |
254 | 263 | // That's utilized by CI_Utf8, but it's also done for consistency with iconv. |
255 | 264 | mb_substitute_character('none'); |
|
263 | 272 | define('ICONV_ENABLED', true); |
264 | 273 | // iconv.internal_encoding is deprecated starting with PHP 5.6 |
265 | 274 | // and it's usage triggers E_DEPRECATED messages. |
266 | | - @ini_set('iconv.internal_encoding', $charset); |
| 275 | + // @ini_set('iconv.internal_encoding', $charset); // commented out by developer kwame |
267 | 276 | } else { |
268 | 277 | define('ICONV_ENABLED', false); |
269 | 278 | } |
|
0 commit comments