* Change template to model.

This commit is contained in:
Yagami
2020-09-16 08:28:18 +08:00
parent 6742ce5c15
commit e6726d5b52
2 changed files with 8 additions and 8 deletions
+3 -3
View File
@@ -150,7 +150,7 @@ class router extends baseRouter
$productIndex = $storyIndex = $hourIndex = $planIndex = $URAndSR = 0;
$projectIndex = empty($this->config->isINT) ? 0 : 1;
if($this->session->program) $template = $this->dbh->query('SELECT template FROM' . TABLE_PROJECT . "WHERE id = {$this->session->program}")->fetch();
if($this->session->program) $model = $this->dbh->query('SELECT model FROM' . TABLE_PROJECT . "WHERE id = {$this->session->program}")->fetch();
foreach($commonSettings as $setting)
{
@@ -161,7 +161,7 @@ class router extends baseRouter
if($setting->key == 'URSRName')
{
if(isset($template->template) && $setting->section == $template->template)
if(isset($model->model) && $setting->section == $model->model)
{
$URSRName = json_decode($setting->value, true);
if(isset($URSRName['URCommon'][$this->clientLang])) $lang->URCommon = $URSRName['URCommon'][$this->clientLang];
@@ -170,7 +170,7 @@ class router extends baseRouter
}
}
if(isset($template->template) && $template->template == 'waterfall')
if(isset($model->model) && $model->model == 'waterfall')
{
$projectIndex = 2;
$planIndex = 1;