diff --git a/module/common/lang/menuOrder.php b/module/common/lang/menuOrder.php index 8f1038cdb3..1340e89c6a 100644 --- a/module/common/lang/menuOrder.php +++ b/module/common/lang/menuOrder.php @@ -124,6 +124,7 @@ $lang->admin->subMenuOrder->dev[20] = 'entry'; $lang->admin->subMenuOrder->data[5] = 'backup'; $lang->admin->subMenuOrder->data[10] = 'trash'; $lang->admin->subMenuOrder->system[5] = 'cron'; +$lang->admin->subMenuOrder->system[10] = 'timezone'; $lang->convert->menuOrder = $lang->admin->menuOrder; $lang->upgrade->menuOrder = $lang->admin->menuOrder; diff --git a/module/common/lang/zh-cn.php b/module/common/lang/zh-cn.php index 46606369c2..9356bc5b79 100644 --- a/module/common/lang/zh-cn.php +++ b/module/common/lang/zh-cn.php @@ -400,7 +400,8 @@ $lang->admin->subMenu->data->backup = array('link' => '备份|backup|index', 'su $lang->admin->subMenu->data->trash = '回收站|action|trash'; $lang->admin->subMenu->system = new stdclass(); -$lang->admin->subMenu->system->cron = array('link' => '定时|cron|index', 'subModule' => 'cron'); +$lang->admin->subMenu->system->cron = array('link' => '定时|cron|index', 'subModule' => 'cron'); +$lang->admin->subMenu->system->timezone = array('link' => '时区|custom|timezone', 'subModule' => 'custom'); $lang->convert = new stdclass(); $lang->upgrade = new stdclass(); diff --git a/module/custom/control.php b/module/custom/control.php index 5440ea9797..87c4c623b8 100644 --- a/module/custom/control.php +++ b/module/custom/control.php @@ -337,6 +337,10 @@ class custom extends control $this->send(array('result' => 'success', 'message' => $this->lang->saveSuccess, 'locate' => 'reload')); } + unset($this->lang->admin->menu->custom['subModule']); + $this->lang->admin->menu->system['subModule'] = 'custom'; + $this->lang->custom->menu = $this->lang->admin->menu; + $this->view->title = $this->lang->custom->timezone; $this->view->position[] = $this->lang->custom->timezone; $this->display(); diff --git a/module/custom/lang/zh-cn.php b/module/custom/lang/zh-cn.php index cdafde4fe0..868406e8d2 100644 --- a/module/custom/lang/zh-cn.php +++ b/module/custom/lang/zh-cn.php @@ -92,6 +92,7 @@ $lang->custom->notice->forceNotReview = "指定人提交的%s不需 $lang->custom->notice->longlife = 'Bug列表页面的久未处理标签中,列出设置天数之前未处理的Bug。'; $lang->custom->notice->invalidNumberKey = '键值应为不大于255的数字'; $lang->custom->notice->invalidStringKey = '键值应当为小写英文字母、数字或下划线的组合'; +$lang->custom->notice->cannotSetTimezone = 'date_default_timezone_set方法不存在或禁用,不能设置时区。'; $lang->custom->notice->indexPage['product'] = "从8.2版本起增加了产品主页视图,是否默认进入产品主页?"; $lang->custom->notice->indexPage['project'] = "从8.2版本起增加了项目主页视图,是否默认进入项目主页?"; diff --git a/module/custom/view/header.html.php b/module/custom/view/header.html.php index 67316c32a4..25442e6a55 100644 --- a/module/custom/view/header.html.php +++ b/module/custom/view/header.html.php @@ -6,7 +6,6 @@ { common::printLink('custom', 'set', "module=$object", "{$name}", '', "class='btn btn-link' id='{$object}Tab'"); } - common::printLink('custom', 'timezone', "", "{$lang->custom->timezone}", '', "class='btn btn-link' id='timezoneTab'"); common::printLink('custom', 'flow', "", "{$lang->custom->flow}", '', "class='btn btn-link' id='flowTab'"); common::printLink('custom', 'working', '', "{$lang->custom->working}", '', "class='btn btn-link' id='workingTab'"); common::printLink('custom', 'required', '', "{$lang->custom->required}", '', "class='btn btn-link' id='requiredTab'"); diff --git a/module/custom/view/timezone.html.php b/module/custom/view/timezone.html.php index 703981133c..020622f070 100644 --- a/module/custom/view/timezone.html.php +++ b/module/custom/view/timezone.html.php @@ -10,32 +10,29 @@ * @link http://www.zentao.net */ ?> - -app->getConfigRoot() . 'timezones.php';?> + +