From 9efa9b1759cf8c80738f4d21b87de29aabd208d7 Mon Sep 17 00:00:00 2001 From: songchenxuan Date: Tue, 30 Nov 2021 10:49:38 +0800 Subject: [PATCH] * Finish task #45018. --- module/story/control.php | 2 +- module/task/control.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/module/story/control.php b/module/story/control.php index e3745d3bff..075f6ae655 100644 --- a/module/story/control.php +++ b/module/story/control.php @@ -709,7 +709,7 @@ class story extends control } else if($this->app->tab == 'my') { - $this->loadModel('my')->setMenu(); + $this->loadModel('my'); if($from == 'work') $this->lang->my->menu->work['subModule'] = 'story'; if($from == 'contribute') $this->lang->my->menu->contribute['subModule'] = 'story'; } diff --git a/module/task/control.php b/module/task/control.php index 6b3a8016bd..fc53da750e 100644 --- a/module/task/control.php +++ b/module/task/control.php @@ -531,7 +531,7 @@ class task extends control else { /* Set my menu. */ - $this->loadModel('my')->setMenu(); + $this->loadModel('my'); $this->lang->my->menu->work['subModule'] = 'task'; $this->view->position[] = html::a($this->createLink('my', 'task'), $this->lang->my->task);