mirror of
				https://github.com/yiisoft/yii2.git
				synced 2025-11-04 06:37:55 +08:00 
			
		
		
		
	Fixes #1937: Fixed wrong behavior or advanced app's init --env when called without parameter actually specified
				
					
				
			This commit is contained in:
		@ -8,7 +8,7 @@ $envNames = array_keys($envs);
 | 
				
			|||||||
echo "Yii Application Initialization Tool v1.0\n\n";
 | 
					echo "Yii Application Initialization Tool v1.0\n\n";
 | 
				
			||||||
 | 
					
 | 
				
			||||||
$envName = null;
 | 
					$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";
 | 
						echo "Which environment do you want the application to be initialized in?\n\n";
 | 
				
			||||||
	foreach ($envNames as $i => $name) {
 | 
						foreach ($envNames as $i => $name) {
 | 
				
			||||||
		echo "  [$i] $name\n";
 | 
							echo "  [$i] $name\n";
 | 
				
			||||||
 | 
				
			|||||||
@ -25,6 +25,7 @@ Yii Framework 2 Change Log
 | 
				
			|||||||
- Bug #1800: Better check for `$_SERVER['HTTPS']` in `yii\web\Request::getIsSecureConnection()` (ginus, samdark)
 | 
					- 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 #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 #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 `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: Fixed incorrect event name for `yii\jui\Spinner` (samdark)
 | 
				
			||||||
- Bug: Json::encode() did not handle objects that implement JsonSerializable interface correctly (cebe)
 | 
					- Bug: Json::encode() did not handle objects that implement JsonSerializable interface correctly (cebe)
 | 
				
			||||||
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user