From 334c3715c6bf523f260336989fb0e7705af14b22 Mon Sep 17 00:00:00 2001 From: pherum83 Date: Tue, 31 Jan 2012 20:05:24 +0000 Subject: [PATCH] r345 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit окраска при переносах git-svn-id: https://torrentpier2.googlecode.com/svn/trunk@345 a8ac35ab-4ca4-ca47-4c2d-a49a94f06293 --- upload/config.php | 2 +- upload/includes/functions_post.php | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/upload/config.php b/upload/config.php index 770579e2c..1f29c34b8 100644 --- a/upload/config.php +++ b/upload/config.php @@ -63,7 +63,7 @@ $bb_cfg = $tr_cfg = $page_cfg = array(); // Increase number of revision after update $bb_cfg['tp_version'] = '2.4 (beta)'; -$bb_cfg['tp_release_state'] = 'R344'; +$bb_cfg['tp_release_state'] = 'R345'; $bb_cfg['tp_release_date'] = '31-01-2012'; // Database diff --git a/upload/includes/functions_post.php b/upload/includes/functions_post.php index dca31b93c..61570a933 100644 --- a/upload/includes/functions_post.php +++ b/upload/includes/functions_post.php @@ -645,8 +645,6 @@ function insert_post ($mode, $topic_id, $forum_id = '', $old_forum_id = '', $new $post_username = $post_subject = $post_text = $poster_ip = ''; $post_time = $current_time = TIMENOW; - $username = $userdata['username']; - $user_id = $userdata['user_id']; if ($mode == 'after_move') { @@ -663,14 +661,14 @@ function insert_post ($mode, $topic_id, $forum_id = '', $old_forum_id = '', $new } if (!$forum_names) return; - $post_text = sprintf($lang['BOT_TOPIC_MOVED_FROM_TO'], "$forum_names[$old_forum_id]", "$forum_names[$forum_id]", "$username"); + $post_text = sprintf($lang['BOT_TOPIC_MOVED_FROM_TO'], "$forum_names[$old_forum_id]", "$forum_names[$forum_id]", profile_url($userdata)); $poster_id = BOT_UID; $poster_ip = '7f000001'; } else if ($mode == 'after_split_to_old') { - $post_text = sprintf($lang['BOT_MESS_SPLITS'], "". htmlCHR($new_topic_title) ."", "$username"); + $post_text = sprintf($lang['BOT_MESS_SPLITS'], "". htmlCHR($new_topic_title) ."", profile_url($userdata)); $poster_id = BOT_UID; $poster_ip = '7f000001'; @@ -687,7 +685,7 @@ function insert_post ($mode, $topic_id, $forum_id = '', $old_forum_id = '', $new $old_topic_title = $row['topic_title']; $post_time = $row['post_time'] - 1; - $post_text = sprintf($lang['BOT_TOPIC_SPLITS'], "$old_topic_title", "$username"); + $post_text = sprintf($lang['BOT_TOPIC_SPLITS'], "$old_topic_title", profile_url($userdata)); $poster_id = BOT_UID; $poster_ip = '7f000001';