diff options
| author | Tristan Darricau <github@nicofuma.fr> | 2015-01-28 09:27:16 +0100 |
|---|---|---|
| committer | Tristan Darricau <github@nicofuma.fr> | 2015-01-28 09:27:16 +0100 |
| commit | 0bdb4c1ed6369a2efd8bf527b2bc48bcd69df1bb (patch) | |
| tree | 527e1475e1e0fd0f011c56e3c2e56c769e08f8fa /phpBB/posting.php | |
| parent | 828aa34ff99cecef3442e2d28dae5734f7db6e12 (diff) | |
| parent | 7fc586080bf5e7b6e90dcf44526200d7c9356d57 (diff) | |
| download | forums-0bdb4c1ed6369a2efd8bf527b2bc48bcd69df1bb.tar forums-0bdb4c1ed6369a2efd8bf527b2bc48bcd69df1bb.tar.gz forums-0bdb4c1ed6369a2efd8bf527b2bc48bcd69df1bb.tar.bz2 forums-0bdb4c1ed6369a2efd8bf527b2bc48bcd69df1bb.tar.xz forums-0bdb4c1ed6369a2efd8bf527b2bc48bcd69df1bb.zip | |
Merge pull request #3263 from MGaetan89/ticket/13468
[ticket/13468] Change add_log() calls with $phpbb_log->add()
* MGaetan89/ticket/13468:
[ticket/13468] Update calls to `add_log()`
Diffstat (limited to 'phpBB/posting.php')
| -rw-r--r-- | phpBB/posting.php | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/phpBB/posting.php b/phpBB/posting.php index 0f2ea303ea..8b90b3b04a 100644 --- a/phpBB/posting.php +++ b/phpBB/posting.php @@ -1293,7 +1293,11 @@ if ($submit || $preview || $refresh) $user_lock = ($auth->acl_get('f_user_lock', $forum_id) && $user->data['is_registered'] && $user->data['user_id'] == $post_data['topic_poster']) ? 'USER_' : ''; - add_log('mod', $forum_id, $topic_id, 'LOG_' . $user_lock . (($change_topic_status == ITEM_LOCKED) ? 'LOCK' : 'UNLOCK'), $post_data['topic_title']); + $phpbb_log->add('mod', $user->data['user_id'], $user->ip, 'LOG_' . $user_lock . (($change_topic_status == ITEM_LOCKED) ? 'LOCK' : 'UNLOCK'), false, array( + 'forum_id' => $forum_id, + 'topic_id' => $topic_id, + $post_data['topic_title'] + )); } // Lock/Unlock Post Edit |
