Skip to content

Commit 846f8f2

Browse files
committed
Možnost zagona od koderkoli
1 parent 3118bac commit 846f8f2

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/Core/App.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,11 @@ public static function isLoggedIn()
173173
public static function getProjectFolder($projectId, $subfolder = null)
174174
{
175175
if (defined('CLI')) {
176-
$destFolder = getcwd() . DS;
176+
if (empty($projectId)) {
177+
$destFolder = getcwd() . DS;
178+
} else {
179+
$destFolder = PROJECTS . $projectId . DS;
180+
}
177181
} else {
178182
$destFolder = PROJECTS . $projectId . DS;
179183
}

0 commit comments

Comments
 (0)