diff --git a/CHANGELOG.md b/CHANGELOG.md index 09cc2c7..ba45cf5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,7 +2,12 @@ All Notable changes to `Spark Plug` will be documented in this file -## [0.4.0](https://github.com/rougin/spark-plug/compare/v0.2.0...v0.4.0) - 2016-04-25 +## [0.4.1](https://github.com/rougin/spark-plug/compare/v0.4.0...v0.4.1) - 2016-04-29 + +### Fixed +- `MB_ENABLED` issue when using `Inflector` helper + +## [0.4.0](https://github.com/rougin/spark-plug/compare/v0.3.0...v0.4.0) - 2016-04-25 ### Added - `Instance::create` diff --git a/composer.json b/composer.json index e084cf9..a4775cc 100644 --- a/composer.json +++ b/composer.json @@ -45,7 +45,7 @@ }, "suggest": { "rougin/codeigniter": "Yet another way to install CodeIgniter via Composer", - "rougin/combustor": "A tool for speeding up web development in CodeIgniter", - "rougin/refinery": "A command line interface for Migrations Class in CodeIgniter" + "rougin/combustor": "Lets you generate controllers, models, and views from database tables for CodeIgniter", + "rougin/refinery": "\"Ready-to-eat\" migrations for CodeIgniter" } } diff --git a/src/SparkPlug.php b/src/SparkPlug.php index 1b6d54d..ad99fbd 100644 --- a/src/SparkPlug.php +++ b/src/SparkPlug.php @@ -120,6 +120,10 @@ protected function setCharSet() ini_set('default_charset', $charset); + if ( ! defined('MB_ENABLED')) { + define('MB_ENABLED', extension_loaded('mbstring')); + } + // mbstring.internal_encoding is deprecated starting with PHP 5.6 // and it's usage triggers E_DEPRECATED messages. if ( ! is_php('5.6') && ! ini_get('mbstring.internal_encoding')) {