diff options
author | Eric Helgeson <erichelgeson@gmail.com> | 2009-07-21 09:20:47 -0500 |
---|---|---|
committer | Eric Helgeson <erichelgeson@gmail.com> | 2009-07-21 09:20:47 -0500 |
commit | db19d61e68fcf8398579c2c4968e73db7f7ed93b (patch) | |
tree | ca64284fb8544823de4a120bca8d45b424fb65b8 /lib/popularnoticesection.php | |
parent | c32e494c0c480e30317b0f0a8dcae7103c4ff89e (diff) | |
parent | fbb0df9f5436e956c43ace372f625f08628c000f (diff) |
Merge commit 'origin/0.8.x' into 0.9.x
Diffstat (limited to 'lib/popularnoticesection.php')
-rw-r--r-- | lib/popularnoticesection.php | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/lib/popularnoticesection.php b/lib/popularnoticesection.php index e47c9b385..167a6ff8d 100644 --- a/lib/popularnoticesection.php +++ b/lib/popularnoticesection.php @@ -74,11 +74,7 @@ class PopularNoticeSection extends NoticeSection $offset = 0; $limit = NOTICES_PER_SECTION + 1; - if (common_config('db', 'type') == 'pgsql') { - $qry .= ' LIMIT ' . $limit . ' OFFSET ' . $offset; - } else { - $qry .= ' LIMIT ' . $offset . ', ' . $limit; - } + $qry .= ' LIMIT ' . $limit . ' OFFSET ' . $offset; $notice = Memcached_DataObject::cachedQuery('Notice', sprintf($qry, common_config('popular', 'dropoff')), |