From c0271a5bc69c37518bb1227b22ee0fe89436e3df Mon Sep 17 00:00:00 2001 From: LiaoYijun Date: Tue, 23 May 2017 15:08:18 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=9C=AA=E9=80=89=E4=B8=AD?= =?UTF-8?q?=E9=9D=99=E6=80=81=E6=9B=B4=E6=96=B0=E5=B0=B1=E4=B8=8D=E9=9C=80?= =?UTF-8?q?=E8=A6=81=E6=9B=B4=E6=96=B0=E9=9D=99=E6=80=81=E9=A1=B5=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/controllers/information.php | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/application/controllers/information.php b/application/controllers/information.php index 1a5f0529..883ea382 100644 --- a/application/controllers/information.php +++ b/application/controllers/information.php @@ -259,7 +259,7 @@ class Information extends CI_Controller { //echo $request; } - // 分享数 lzq + // 分享数 lzq public function statistical_sharing() { //$info_ic = $this->Information_model->get_ic_url_by_code('mbj'); @@ -292,7 +292,7 @@ class Information extends CI_Controller { //$sstt = $this->config->item('site'); //foreach($infolist as $k=>$v){ - // $aabb[] = $v->ic_sitecode; + // $aabb[] = $v->ic_sitecode; //} //$url_count = $this->Information_model->get_count_by_code('mbj'); //$surl = site_url('/information/fengxiangshu'); @@ -364,10 +364,9 @@ class Information extends CI_Controller { //德语站FAQ版块需要删除原来的文件才能更新静态 by TDY @20150113 if ($this->config->item('site_code') == 'gm' && substr($this->input->post('ic_url'), 0, 5) == '/faq/') { $this->update_cache($this->input->post('ic_url'), true); - } else { + } else if (!empty($this->input->get_post('auto_update_cache_checkbox'))) { $this->update_cache($this->input->post('ic_url')); } - // } $data[] = array('name' => 'ok', 'value' => $this->lang->line('form_info_success')); $this->Logs_model->backup($information->is_id, $this->input->post('ic_content')); @@ -502,7 +501,7 @@ class Information extends CI_Controller { $url = $this->config->item('site_url') . $url . '@cache@refresh'; } - //关闭错误提示,防止file_get_contents请求特殊字符的时候会报错或者404、500,特殊字符需要用urlencode编码第一个/后面的url + //关闭错误提示,防止file_get_contents请求特殊字符的时候会报错或者404、500,特殊字符需要用urlencode编码第一个/后面的url //error_reporting(NULL); //ini_set('display_errors', 'Off');