Change to only show local posters in top posting section

This commit is contained in:
Evan Prodromou 2009-01-22 20:22:06 +01:00
parent e9b3e4e7a8
commit 5cc0391093
1 changed files with 1 additions and 0 deletions

View File

@ -50,6 +50,7 @@ class TopPostersSection extends ProfileSection
{
$qry = 'SELECT profile.*, count(*) as value ' .
'FROM profile JOIN notice ON profile.id = notice.profile_id ' .
(common_config('public', 'localonly') ? 'WHERE is_local = 1 ' : '') .
'GROUP BY profile.id ' .
'ORDER BY value DESC ';