mirror of
https://github.com/phpbb/phpbb.git
synced 2025-05-07 08:05:25 +02:00
[ticket/12107] Use log table property instead of log table constant.
PHPBB3-12107
This commit is contained in:
parent
46fec7ee90
commit
83ec308eff
@ -424,7 +424,7 @@ class log implements \phpbb\log\log_interface
|
|||||||
if ($count_logs)
|
if ($count_logs)
|
||||||
{
|
{
|
||||||
$sql = 'SELECT COUNT(l.log_id) AS total_entries
|
$sql = 'SELECT COUNT(l.log_id) AS total_entries
|
||||||
FROM ' . LOG_TABLE . ' l, ' . USERS_TABLE . ' u
|
FROM ' . $this->log_table . ' l, ' . USERS_TABLE . ' u
|
||||||
WHERE l.log_type = ' . (int) $log_type . '
|
WHERE l.log_type = ' . (int) $log_type . '
|
||||||
AND l.user_id = u.user_id
|
AND l.user_id = u.user_id
|
||||||
AND l.log_time >= ' . (int) $log_time . "
|
AND l.log_time >= ' . (int) $log_time . "
|
||||||
@ -449,7 +449,7 @@ class log implements \phpbb\log\log_interface
|
|||||||
}
|
}
|
||||||
|
|
||||||
$sql = 'SELECT l.*, u.username, u.username_clean, u.user_colour
|
$sql = 'SELECT l.*, u.username, u.username_clean, u.user_colour
|
||||||
FROM ' . LOG_TABLE . ' l, ' . USERS_TABLE . ' u
|
FROM ' . $this->log_table . ' l, ' . USERS_TABLE . ' u
|
||||||
WHERE l.log_type = ' . (int) $log_type . '
|
WHERE l.log_type = ' . (int) $log_type . '
|
||||||
AND u.user_id = l.user_id
|
AND u.user_id = l.user_id
|
||||||
' . (($log_time) ? 'AND l.log_time >= ' . (int) $log_time : '') . "
|
' . (($log_time) ? 'AND l.log_time >= ' . (int) $log_time : '') . "
|
||||||
|
Loading…
x
Reference in New Issue
Block a user