1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-01 14:30:32 +02:00

[feature/save-post-on-report] Changed the name of the column

The name of the column was changed from reported_post AND
reported_text to reported_post_text.
This change was made by request

PHPBB3-10600
This commit is contained in:
Bruno Ais
2012-02-15 22:03:32 +00:00
committed by Oleg Pudeyev
parent 6f5c0dddfc
commit 18373035c3
11 changed files with 16 additions and 16 deletions

View File

@@ -71,9 +71,9 @@ if ($post_id)
trigger_error('POST_NOT_EXIST');
}
$forum_id = (int) $report_data['forum_id'];
$topic_id = (int) $report_data['topic_id'];
$reported_text = $report_data['post_text'];
$forum_id = (int) $report_data['forum_id'];
$topic_id = (int) $report_data['topic_id'];
$reported_post_text = $report_data['post_text'];
$sql = 'SELECT *
FROM ' . FORUMS_TABLE . '
@@ -132,7 +132,7 @@ else
trigger_error($message);
}
$reported_text = $report_data['message_text'];
$reported_post_text = $report_data['message_text'];
}
// Submit report?
@@ -159,7 +159,7 @@ if ($submit && $reason_id)
'report_closed' => 0,
'report_time' => (int) time(),
'report_text' => (string) $report_text,
'reported_text' => $reported_text,
'reported_post_text' => $reported_post_text,
);
$sql = 'INSERT INTO ' . REPORTS_TABLE . ' ' . $db->sql_build_array('INSERT', $sql_ary);