Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Command/CoreCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ private function matchCronField(string $expr, $value, int $min, int $max, ?array
public function initAction()
{
// Initialize the framework
$this->Helper->Core->init();
$this->Helper->Core->init(true);
}

/**
Expand Down
9 changes: 8 additions & 1 deletion Helper/CoreHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public function init(bool $force = false): bool
// Path to file
$htaccess = $CONFIG->root() . DIRECTORY_SEPARATOR . ".htaccess";

// Check if the file exist
// Check if the file exist and we want to force the creation
if($force && is_file($htaccess)) {

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

// Check if the directory exist and we want to force the creation
if($force && is_dir($webroot)) {

// Delete file
$this->delete($webroot);
}

// Check if directory exists
if(!is_dir($webroot) && !is_file($webroot) && !is_link($webroot)) {

Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v0.0.70
v0.0.71