From 57bbeeddd7583fd6402a15454c4460fa343a1e4f Mon Sep 17 00:00:00 2001 From: hufangzhou Date: Thu, 10 Mar 2022 11:01:21 +0800 Subject: [PATCH] * Remove the unused code. --- module/score/control.php | 2 -- module/story/control.php | 1 - module/todo/control.php | 1 - 3 files changed, 4 deletions(-) diff --git a/module/score/control.php b/module/score/control.php index 62c190e715..d6648c4c25 100644 --- a/module/score/control.php +++ b/module/score/control.php @@ -31,8 +31,6 @@ class score extends control */ public function rule() { - $this->loadModel('my')->setMenu(); - $this->view->title = $this->lang->my->scoreRule; $this->view->position[] = $this->lang->my->scoreRule; $this->display(); diff --git a/module/story/control.php b/module/story/control.php index e49c4b4974..43e60d13f4 100644 --- a/module/story/control.php +++ b/module/story/control.php @@ -1470,7 +1470,6 @@ class story extends control { $this->lang->story->menu = $this->lang->my->menu; $this->lang->story->menuOrder = $this->lang->my->menuOrder; - $this->loadModel('my')->setMenu(); if($from == 'work') $this->lang->my->menu->work['subModule'] = 'story'; if($from == 'contribute') $this->lang->my->menu->contribute['subModule'] = 'story'; diff --git a/module/todo/control.php b/module/todo/control.php index 737bc58f70..902196ed9a 100644 --- a/module/todo/control.php +++ b/module/todo/control.php @@ -23,7 +23,6 @@ class todo extends control $this->app->loadClass('date'); $this->loadModel('task'); $this->loadModel('bug'); - $this->loadModel('my')->setMenu(); } /**