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')) {?>