Skip to content

Commit

Permalink
El actualizador reemplaza ahora también el archivo replace_index_to_r…
Browse files Browse the repository at this point in the history
…estore.php
  • Loading branch information
NeoRazorX committed Jan 20, 2024
1 parent 33271e4 commit ad2a139
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
8 changes: 5 additions & 3 deletions Core/Controller/Updater.php
Original file line number Diff line number Diff line change
Expand Up @@ -408,9 +408,11 @@ private function updateCore(ZipArchive $zip, string $fileName): bool
}

// update files
$origin = Tools::folder(self::CORE_ZIP_FOLDER, 'index.php');
$dest = Tools::folder('index.php');
copy($origin, $dest);
foreach (['index.php', 'replace_index_to_restore.php'] as $name) {
$origin = Tools::folder(self::CORE_ZIP_FOLDER, $name);
$dest = Tools::folder($name);
copy($origin, $dest);
}

// remove zip folder
FileManager::delTree(Tools::folder(self::CORE_ZIP_FOLDER));
Expand Down
2 changes: 1 addition & 1 deletion Core/Kernel.php
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ public static function stopTimer(string $name): float

public static function version(): float
{
return 2023.2;
return 2023.21;
}

private static function getErrorHandler(Exception $exception): ErrorControllerInterface
Expand Down

0 comments on commit ad2a139

Please sign in to comment.