From ee109a6f4a0e6805f057fedf8e112ad8d2d38b14 Mon Sep 17 00:00:00 2001 From: Alexander Makarov Date: Mon, 13 Jan 2014 00:01:05 +0400 Subject: [PATCH] Fixes #1937: Fixed wrong behavior or advanced app's `init --env` when called without parameter actually specified --- apps/advanced/init | 2 +- framework/CHANGELOG.md | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/advanced/init b/apps/advanced/init index 4015748636..4b1d1e4904 100755 --- a/apps/advanced/init +++ b/apps/advanced/init @@ -8,7 +8,7 @@ $envNames = array_keys($envs); echo "Yii Application Initialization Tool v1.0\n\n"; $envName = null; -if (empty($params['env'])) { +if (empty($params['env']) || $params['env'] === '1') { echo "Which environment do you want the application to be initialized in?\n\n"; foreach ($envNames as $i => $name) { echo " [$i] $name\n"; diff --git a/framework/CHANGELOG.md b/framework/CHANGELOG.md index 7caf9a3b40..c1661462e0 100644 --- a/framework/CHANGELOG.md +++ b/framework/CHANGELOG.md @@ -25,6 +25,7 @@ Yii Framework 2 Change Log - Bug #1800: Better check for `$_SERVER['HTTPS']` in `yii\web\Request::getIsSecureConnection()` (ginus, samdark) - Bug #1827: Debugger toolbar is loaded twice if an action is calling `run()` to execute another action (qiangxue) - Bug #1870: Validation errors weren't properly translated when using clientside validation (samdark) +- Bug #1937: Fixed wrong behavior or advanced app's `init --env` when called without parameter actually specified (samdark) - Bug: Fixed `Call to a member function registerAssetFiles() on a non-object` in case of wrong `sourcePath` for an asset bundle (samdark) - Bug: Fixed incorrect event name for `yii\jui\Spinner` (samdark) - Bug: Json::encode() did not handle objects that implement JsonSerializable interface correctly (cebe)