From 63e2007e41822af64f751bd0733a5f3ea1f85cb1 Mon Sep 17 00:00:00 2001 From: tianshujie Date: Tue, 5 Dec 2023 16:47:25 +0800 Subject: [PATCH] * Refactor deleteCatalog method. --- module/doc/control.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/module/doc/control.php b/module/doc/control.php index 53a88c37a9..d281312150 100755 --- a/module/doc/control.php +++ b/module/doc/control.php @@ -983,15 +983,16 @@ class doc extends control } /** + * 删除一个目录。 * Delete a catalog. * * @param int $moduleID * @access public * @return void */ - public function deleteCatalog($moduleID) + public function deleteCatalog(int $moduleID) { - echo $this->fetch('tree', 'delete', "moduleID=$moduleID&confirm=yes"); + echo $this->fetch('tree', 'delete', "moduleID={$moduleID}&confirm=yes"); } /**