Skip to content

Commit 25b3756

Browse files
authored
Merge pull request #71 from LaswitchTech/dev
General: Version bumped to v0.0.71
2 parents f92abe4 + 912c76d commit 25b3756

3 files changed

Lines changed: 10 additions & 3 deletions

File tree

Command/CoreCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ private function matchCronField(string $expr, $value, int $min, int $max, ?array
165165
public function initAction()
166166
{
167167
// Initialize the framework
168-
$this->Helper->Core->init();
168+
$this->Helper->Core->init(true);
169169
}
170170

171171
/**

Helper/CoreHelper.php

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ public function init(bool $force = false): bool
2525
// Path to file
2626
$htaccess = $CONFIG->root() . DIRECTORY_SEPARATOR . ".htaccess";
2727

28-
// Check if the file exist
28+
// Check if the file exist and we want to force the creation
2929
if($force && is_file($htaccess)) {
3030

3131
// Delete file
@@ -82,6 +82,13 @@ public function init(bool $force = false): bool
8282
// Path to file
8383
$webroot = $CONFIG->root() . DIRECTORY_SEPARATOR . "webroot";
8484

85+
// Check if the directory exist and we want to force the creation
86+
if($force && is_dir($webroot)) {
87+
88+
// Delete file
89+
$this->delete($webroot);
90+
}
91+
8592
// Check if directory exists
8693
if(!is_dir($webroot) && !is_file($webroot) && !is_link($webroot)) {
8794

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v0.0.70
1+
v0.0.71

0 commit comments

Comments
 (0)