From af41789867c54cc3cfbcc40e5fe87a25a7c7c433 Mon Sep 17 00:00:00 2001 From: tianshujie Date: Tue, 5 Dec 2023 16:51:07 +0800 Subject: [PATCH] * Refactor doc::editCatalog method. --- module/doc/control.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/module/doc/control.php b/module/doc/control.php index d281312150..4538afa40f 100755 --- a/module/doc/control.php +++ b/module/doc/control.php @@ -970,16 +970,17 @@ class doc extends control } /** + * 编辑一个目录。 * Edit a catalog. * * @param int $moduleID - * @param string $type doc|api + * @param string $type doc|api * @access public * @return void */ - public function editCatalog($moduleID, $type) + public function editCatalog(int $moduleID, string $type) { - echo $this->fetch('tree', 'edit', "moduleID=$moduleID&type=$type"); + echo $this->fetch('tree', 'edit', "moduleID={$moduleID}&type={$type}"); } /**