From 7b68c7aaf063f498450074c1802b25063e4ad6a6 Mon Sep 17 00:00:00 2001 From: cyc Date: Mon, 9 Apr 2018 11:14:11 +0800 Subject: [PATCH] =?UTF-8?q?=E5=85=B3=E9=97=AD=E5=BE=B7=E8=AF=AD=E8=87=AA?= =?UTF-8?q?=E5=8A=A8=E6=9B=B4=E6=96=B0=E7=9A=84=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/controllers/information.php | 2 +- application/views/bootstrap3/information_edit.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/application/controllers/information.php b/application/controllers/information.php index 33912e01..c046affd 100644 --- a/application/controllers/information.php +++ b/application/controllers/information.php @@ -424,7 +424,7 @@ class Information extends CI_Controller { $site_code = $this->config->item('site_code'); $ic_url = $this->input->post('ic_url'); $auto_update_cache = $this->input->get_post('auto_update_cache_checkbox'); - if ($site_code == 'gm' && substr($ic_url, 0, 5) == '/faq/') { + if (strcasecmp($site_code, "gm") == 0 && !empty($auto_update_cache)) { $update_info_log = $this->update_cache($ic_url, true); } else if (strcasecmp($site_code, "cht") == 0 && !empty($auto_update_cache)) { $update_info_log = $this->update_cache($ic_url); diff --git a/application/views/bootstrap3/information_edit.php b/application/views/bootstrap3/information_edit.php index 8d4b9c00..3b462871 100644 --- a/application/views/bootstrap3/information_edit.php +++ b/application/views/bootstrap3/information_edit.php @@ -1222,7 +1222,7 @@ foreach ($author_list as $author_item) { 忽略URL重复
- config->item('site_code') == 'ah') || ($this->config->item('site_code') == 'gm')) {?> + config->item('site_code') == 'ah')) {?>