diff options
author | Andreas Fischer <bantu@phpbb.com> | 2014-01-12 21:19:35 +0100 |
---|---|---|
committer | Andreas Fischer <bantu@phpbb.com> | 2014-01-12 21:36:50 +0100 |
commit | 83ec308eff0554037fdf1f215e9e9ad444bc30a9 (patch) | |
tree | 6b771a689de36e3e52f4abe2d6fbdf90b681d7c0 | |
parent | 46fec7ee90eea2a20491c5d7dad44faae4fe205a (diff) | |
download | forums-83ec308eff0554037fdf1f215e9e9ad444bc30a9.tar forums-83ec308eff0554037fdf1f215e9e9ad444bc30a9.tar.gz forums-83ec308eff0554037fdf1f215e9e9ad444bc30a9.tar.bz2 forums-83ec308eff0554037fdf1f215e9e9ad444bc30a9.tar.xz forums-83ec308eff0554037fdf1f215e9e9ad444bc30a9.zip |
[ticket/12107] Use log table property instead of log table constant.
PHPBB3-12107
-rw-r--r-- | phpBB/phpbb/log/log.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/phpBB/phpbb/log/log.php b/phpBB/phpbb/log/log.php index a6ee06ebf2..62edc6a77f 100644 --- a/phpBB/phpbb/log/log.php +++ b/phpBB/phpbb/log/log.php @@ -424,7 +424,7 @@ class log implements \phpbb\log\log_interface if ($count_logs) { $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 . ' AND l.user_id = u.user_id 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 - FROM ' . LOG_TABLE . ' l, ' . USERS_TABLE . ' u + FROM ' . $this->log_table . ' l, ' . USERS_TABLE . ' u WHERE l.log_type = ' . (int) $log_type . ' AND u.user_id = l.user_id ' . (($log_time) ? 'AND l.log_time >= ' . (int) $log_time : '') . " |