mirror of
https://github.com/getgrav/grav.git
synced 2025-10-30 18:05:52 +01:00
@@ -418,15 +418,9 @@ class SafeUpgradeService
|
|||||||
*/
|
*/
|
||||||
public function clearRecoveryFlag(): void
|
public function clearRecoveryFlag(): void
|
||||||
{
|
{
|
||||||
$paths = [
|
$flag = $this->rootPath . '/user/data/recovery.flag';
|
||||||
$this->rootPath . '/user/data/recovery.flag',
|
if (is_file($flag)) {
|
||||||
$this->rootPath . '/user/data/recovery.window',
|
@unlink($flag);
|
||||||
];
|
|
||||||
|
|
||||||
foreach ($paths as $path) {
|
|
||||||
if (is_file($path)) {
|
|
||||||
@unlink($path);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -235,8 +235,6 @@ class UpdateCommand extends GpmCommand
|
|||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
$recovery->closeUpgradeWindow();
|
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user