Merge branch 'master' of git.mycht.cn:developers/information-system

hotfix/远程访问多媒体中心
尹诚诚 8 years ago
commit 195d971399

@ -391,14 +391,19 @@ class Information extends CI_Controller {
$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/') {
$this->update_cache($ic_url, true);
$update_info_log = $this->update_cache($ic_url, true);
} else if (strcasecmp($site_code, "cht") == 0 && !empty($auto_update_cache)) {
$this->update_cache($ic_url);
$update_info_log = $this->update_cache($ic_url);
} else if (strcasecmp($site_code, "cht") != 0) {
$this->update_cache($ic_url);
$update_info_log = $this->update_cache($ic_url);
}
$data[] = array('name' => 'ok', 'value' => $this->lang->line('form_info_success'));
if (empty($update_info_log) || count($update_info_log)==0 || !isset($update_info_log[0]['url']))
{
$update_info_log = 'not found update info log';
}
$data[] = array('name' => 'ok', 'value' => $this->lang->line('form_info_success'), 'update_info_log' => $update_info_log);
$this->Logs_model->backup($information->is_id, $this->input->post('ic_content'));
$this->Logs_model->backup_summary($information->is_id, $this->input->post('ic_summary'));

Loading…
Cancel
Save