summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEvan Prodromou <evan@controlyourself.ca>2009-01-22 20:22:06 +0100
committerEvan Prodromou <evan@controlyourself.ca>2009-01-22 20:22:06 +0100
commit5cc0391093109a99504d27415a53712421c8e95f (patch)
treeb4634e0394a08a1f6a903d6b9b97197d25a1372e
parente9b3e4e7a8feaebec370db780a4da7fd639772f3 (diff)
Change to only show local posters in top posting section
-rw-r--r--lib/topposterssection.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/topposterssection.php b/lib/topposterssection.php
index 116373818..7a3d46aa5 100644
--- a/lib/topposterssection.php
+++ b/lib/topposterssection.php
@@ -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 ';