fix is_series_site

master
LMR 2 years ago
parent 2217500854
commit 428f30e17d

@ -171,7 +171,6 @@ class Information extends CI_Controller
$data['informationList'] = $this->Information_model->StructureList($rootStructure_ID);
//增加一项,属于这个区域,但是结构数据层次不准确的也要列出来
//todo:
//信息内容
$data['information'] = $this->Information_model->Detail($is_id);

@ -77,7 +77,7 @@ function is_series_site()
{
$CI = &get_instance();
$sitecode = $CI->config->item('site_code');
if ($sitecode == 'vc' || $sitecode == 'ru' || $sitecode == 'jp' || $sitecode == 'vac' || $sitecode == 'it') {
if (in_array($sitecode, array('jp', 'vc', 'vac', 'ru', 'it', 'gh_jp', 'gh_vc', 'gh_vac', 'gh_ru', 'gh_it', 'gh_gm'))) {
return true;
} else {
return false;
@ -275,7 +275,8 @@ function show_page($page)
}
$html = '';
if ($nowview > 1) $befor--;
if ($nowview > 1)
$befor--;
if ($pageSize <= $total) {
for ($i = $befor; $i <= $after; $i++) {
if ($i == $currentPage) {
@ -371,7 +372,8 @@ function compress_css($buffer)
}
//把临时多媒体中心预览图片地址替换为网前地址
function replace_image_url($ic_content){
function replace_image_url($ic_content)
{
$CI = &get_instance();
return str_replace($CI->config->item('media_image_url'), $CI->config->item('site_image_url'), $ic_content);
}
Loading…
Cancel
Save