* [task#116512.doing,0.2h] replace - to _ for system.

This commit is contained in:
caoyanyi
2024-06-12 10:20:50 +08:00
parent ab55103f29
commit 300839b415
2 changed files with 5 additions and 3 deletions
+3 -1
View File
@@ -264,6 +264,7 @@ class system extends control
*/
public function restoreBackup($backupName)
{
$backupName = str_replace('_', '-', $backupName);
$instance = $this->config->instance->zentaopaas;
$result = $this->system->restore($instance, $backupName);
@@ -282,6 +283,7 @@ class system extends control
*/
public function deleteBackup($backupName)
{
$backupName = str_replace('_', '-', $backupName);
$instance = $this->config->instance->zentaopaas;
$result = $this->system->deleteBackup($instance, $backupName);
@@ -342,7 +344,7 @@ class system extends control
{
session_write_close();
if(strpos($backupName, '_') !== false) $backupName = str_replace('_', '-', $backupName);
$backupName = str_replace('_', '-', $backupName);
$result = $this->cne->getRestoreStatus($this->config->instance->zentaopaas, $backupName);
if($result && $result->code == 200)
{