From 4d4fa2cec8b80bfd943f98f45f9a1e74d139bb0f Mon Sep 17 00:00:00 2001 From: tianshujie Date: Mon, 18 Dec 2023 09:48:30 +0800 Subject: [PATCH] * Refactor stage::plusBrowse method. --- module/stage/control.php | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/module/stage/control.php b/module/stage/control.php index 81f58de9ba..71b3f1d9eb 100644 --- a/module/stage/control.php +++ b/module/stage/control.php @@ -12,8 +12,8 @@ class stage extends control { /** - * 阶段列表页。 - * Browse stages. + * 瀑布模型阶段列表页。 + * Waterfall model stage list page. * * @param string $orderBy * @param string $type waterfall|waterfallplus @@ -35,22 +35,24 @@ class stage extends control } /** - * Browse stages. + * 融合瀑布模型阶段列表页。 + * Waterfall plus model stage list page. * * @param string $orderBy + * @param string $type waterfall|waterfallplus * @access public * @return void */ public function plusBrowse($orderBy = "id_asc", $type = 'waterfallplus') { - if($type == 'waterfall') $this->locate($this->createLink('stage', 'browse', "orderBy=$orderBy&type=waterfall")); + if($type == 'waterfall') $this->locate($this->createLink('stage', 'browse', "orderBy={$orderBy}&type=waterfall")); $this->stage->setMenu($type); - $this->view->stages = $this->stage->getStages($orderBy, 0, $type); - $this->view->orderBy = $orderBy; - $this->view->type = $type; - $this->view->title = $this->lang->stage->common . $this->lang->colon . $this->lang->stage->browse; + $this->view->stages = $this->stage->getStages($orderBy, 0, $type); + $this->view->orderBy = $orderBy; + $this->view->type = $type; + $this->view->title = $this->lang->stage->common . $this->lang->colon . $this->lang->stage->browse; $this->display('stage', 'browse'); }