Set response code in some cases (#1319)

* Set response code in some cases

* Update CHANGELOG.md
This commit is contained in:
Roman Kelesidis 2024-01-17 11:10:18 +07:00 committed by GitHub
commit 125cd11c01
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
9 changed files with 33 additions and 34 deletions

View file

@ -124,7 +124,7 @@ switch ($mode) {
if ($tpl_data['tpl_last_edit_tm'] > $this->request['tpl_l_ed_tst'] && $tpl_data['tpl_last_edit_by'] != $userdata['user_id']) {
$last_edit_by_username = get_username((int)$tpl_data['tpl_last_edit_by']);
$msg = "Изменения не были сохранены!\n\n";
$msg .= 'Шаблон был отредактирован: ' . htmlCHR($last_edit_by_username) . ', ' . bb_date($tpl_data['tpl_last_edit_tm'], 'd-M-y H:i');
$msg .= 'Шаблон был отредактирован: ' . html_ent_decode($last_edit_by_username) . ', ' . bb_date($tpl_data['tpl_last_edit_tm'], 'd-M-y H:i');
$this->ajax_die($msg);
}
$sql = "UPDATE " . BB_TOPIC_TPL . " SET " . DB()->build_array('UPDATE', $sql_args) . " WHERE tpl_id = $tpl_id";