diff --git a/library/ajax/topic_tpl.php b/library/ajax/topic_tpl.php index bb774881..1cea63fe 100644 --- a/library/ajax/topic_tpl.php +++ b/library/ajax/topic_tpl.php @@ -86,7 +86,7 @@ switch ($mode) $this->response['val']['tpl-last-edit-tst'] = $tpl_data['tpl_last_edit_tm']; $this->response['html']['tpl-name-old-save'] = $tpl_data['tpl_name']; $this->response['html']['tpl-last-edit-time'] = bb_date($tpl_data['tpl_last_edit_tm'], 'd-M-y H:i'); - $this->response['html']['tpl-last-edit-by'] = get_username(intval($tpl_data['tpl_last_edit_by'])); + $this->response['html']['tpl-last-edit-by'] = profile_url(get_userdata(intval($tpl_data['tpl_last_edit_by']))); $this->response['tpl_rules_href'] = POST_URL . $tpl_data['tpl_rules_post_id'] .'#'. $tpl_data['tpl_rules_post_id']; break; @@ -130,7 +130,7 @@ switch ($mode) { $last_edit_by_username = get_username(intval($tpl_data['tpl_last_edit_by'])); $msg = "Изменения не были сохранены!\n\n"; - $msg .= 'Шаблон был отредактирован: '. html_entity_decode($last_edit_by_username) .', '. delta_time($tpl_data['tpl_last_edit_tm']) ." назад\n\n"; + $msg .= 'Шаблон был отредактирован: '. html_entity_decode($last_edit_by_username) .', '. delta_time($tpl_data['tpl_last_edit_tm'], 'd-M-y H:i') ." назад\n\n"; $this->ajax_die($msg); } $sql = "UPDATE ". BB_TOPIC_TPL ." SET ". DB()->build_array('UPDATE', $sql_args) ." WHERE tpl_id = $tpl_id LIMIT 1"; diff --git a/library/includes/posting_tpl.php b/library/includes/posting_tpl.php index 10a608a0..1167af3b 100644 --- a/library/includes/posting_tpl.php +++ b/library/includes/posting_tpl.php @@ -73,10 +73,10 @@ if ($edit_tpl_mode) 'TPL_COMMENT' => $tpl_data['tpl_comment'], 'TPL_RULES_POST_ID' => $tpl_data['tpl_rules_post_id'], 'TPL_LAST_EDIT_TIME' => bb_date($tpl_data['tpl_last_edit_tm'], 'd-M-y H:i'), - 'TPL_LAST_EDIT_USER' => get_username(intval($tpl_data['tpl_last_edit_by'])), + 'TPL_LAST_EDIT_USER' => profile_url(get_userdata(intval($tpl_data['tpl_last_edit_by']))), 'TPL_LAST_EDIT_TIMESTAMP' => $tpl_data['tpl_last_edit_tm'], )); } } -print_page(TEMPLATES_DIR . 'posting_tpl.tpl'); \ No newline at end of file +print_page(TEMPLATES_DIR . 'posting_tpl.tpl');