* Adjust block test script.

This commit is contained in:
Wangyuting
2023-05-09 16:38:42 +08:00
parent 85b01b3189
commit 14d4e1234c
24 changed files with 255 additions and 101 deletions
+1 -1
View File
@@ -180,7 +180,7 @@ class block extends control
/* 永久关闭区块。 */
$block = $this->block->getByID($blockID);
$this->block->deleteBlock($blockID);
$this->block->deleteBlock(0, $block->module, $block->code);
/* 将关闭的区块保存到配置信息。 */
$closedBlock = isset($this->config->block->closed) ? $this->config->block->closed : '';