From 10f39c9053df040d869ffc5822d6c99866ffd114 Mon Sep 17 00:00:00 2001 From: hufangzhou Date: Thu, 26 Aug 2021 09:26:19 +0800 Subject: [PATCH] * Task #41784: Remove the unused code. --- module/block/view/welcome.html.php | 7 ++++++- module/my/control.php | 11 ----------- 2 files changed, 6 insertions(+), 12 deletions(-) diff --git a/module/block/view/welcome.html.php b/module/block/view/welcome.html.php index bf8ccd42ac..62fdcd3145 100644 --- a/module/block/view/welcome.html.php +++ b/module/block/view/welcome.html.php @@ -49,7 +49,12 @@ tutorialHidden) or $config->tutorialHidden == '0'):?>
- " . $lang->tutorialAB, '', "class='text-muted'");?> + app->config->global->flow == 'full' && !commonModel::isTutorialMode()) + { + echo html::a(helper::createLink('tutorial', 'start'), " " . $lang->tutorialAB, '', "class='iframe text-muted' data-class-name='modal-inverse' data-width='800' data-headerless='true' data-backdrop='true' data-keyboard='true'"); + } + ?>
diff --git a/module/my/control.php b/module/my/control.php index cc10336b33..35df5d94dc 100644 --- a/module/my/control.php +++ b/module/my/control.php @@ -991,17 +991,6 @@ class my extends control $this->display(); } - /** - * Tutorial. - * - * @access public - * @return void - */ - public function tutorial() - { - $this->display(); - } - /** * Set the tutorial hidden in the welcome block. *