配置德语产品模板 fix 3

hotfix/paypal-note
LMR 3 years ago
parent 00fe02ab5c
commit 8489d7b9ac

@ -1029,7 +1029,6 @@ $config['templates_cht'] = array(
//产品管理板块模板 //产品管理板块模板
$config['templates_product'] = array( $config['templates_product'] = array(
'空白模板' => 'none', '空白模板' => 'none',
'通用内容模板(德语)' => 'guide_info_detail',
); );
//产品管理板块模板 //产品管理板块模板
@ -1132,4 +1131,4 @@ $config['media_image_url_remote2'] = 'http://116.251.217.48:3581/upload';
/* End of file config.php */ /* End of file config.php */
/* Location: ./application/config/config.php */ /* Location: ./application/config/config.php */
header('Cache-Control: no-cache'); header('Cache-Control: no-cache');

@ -245,11 +245,12 @@ class Information extends CI_Controller
//LMR 2016-7-14 //LMR 2016-7-14
if (in_array($this->config->item('site_code'), array('vac', 'vc', 'jp', 'ru', 'it'))) { if (in_array($this->config->item('site_code'), array('vac', 'vc', 'jp', 'ru', 'it'))) {
$this->config->set_item('templates', $this->config->item('templates_product_i')); $this->config->set_item('templates', $this->config->item('templates_product_i'));
} else if ($this->config->item('site_code' == 'gm')) { } else if ($this->config->item('site_code') === 'gm') {
$this->config->set_item('templates', $this->config->item('templates_product_gm')); $this->config->set_item('templates', $this->config->item('templates_product_gm'));
} else { } else {
$this->config->set_item('templates', $this->config->item('templates_product')); $this->config->set_item('templates', $this->config->item('templates_product'));
} }
break; break;
default: default:
$data['infoTypeList'] = array('不设置' => 'none', '首页' => 'root'); $data['infoTypeList'] = array('不设置' => 'none', '首页' => 'root');
@ -2288,4 +2289,4 @@ class Information extends CI_Controller
echo json_encode($data); echo json_encode($data);
return true; return true;
} }
} }

Loading…
Cancel
Save