* admin: refactor the table engine page, finish task #98719.

This commit is contained in:
liugang
2023-07-26 16:44:05 +08:00
parent 6b82e15b13
commit 964c80366e
3 changed files with 126 additions and 3 deletions
+3 -3
View File
@@ -476,7 +476,7 @@ class admin extends control
{
unset($_SESSION['errorTables']);
$response['result'] = 'finished';
return print(json_encode($response));
return $this->send($response);
}
try
@@ -489,7 +489,7 @@ class admin extends control
if(!empty($dbProcess->Info) and strpos($dbProcess->Info, " {$thisTable} ") !== false)
{
$response['message'] = sprintf($this->lang->upgrade->changingTable, $thisTable);
return print(json_encode($response));
return $this->send($response);
}
}
}
@@ -512,7 +512,7 @@ class admin extends control
$response['message'] = sprintf($this->lang->admin->changeFail, $thisTable, htmlspecialchars($e->getMessage()));
}
return print(json_encode($response));
return $this->send($response);
}
/**