Skip to content

Commit

Permalink
do not throw exception on windows (#2153)
Browse files Browse the repository at this point in the history
* do not throw exception on windows

* add allow plugins
  • Loading branch information
nadar authored Jul 13, 2022
1 parent 6b61ac1 commit 810a072
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,10 @@
"config":{
"fxp-asset":{
"enabled":false
},
"allow-plugins": {
"yiisoft/yii2-composer": true,
"luyadev/luya-composer": true
}
},
"bin":[
Expand Down
2 changes: 1 addition & 1 deletion core/console/commands/ThemeController.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ public function actionCreate(string $themeName = null)
}

$basePath = $themeLocation . DIRECTORY_SEPARATOR . 'themes' . DIRECTORY_SEPARATOR . $themeName;
$themeFolder = Yii::getAlias($basePath);
$themeFolder = Yii::getAlias($themeLocation) . DIRECTORY_SEPARATOR . 'themes' . DIRECTORY_SEPARATOR . $themeName;

if (file_exists($themeFolder)) {
return $this->outputError("The folder " . $themeFolder . " exists already.");
Expand Down

0 comments on commit 810a072

Please sign in to comment.