diff options
author | CiaranG <ciaran@ciarang.com> | 2009-07-19 08:05:53 +0100 |
---|---|---|
committer | CiaranG <ciaran@ciarang.com> | 2009-07-19 08:05:53 +0100 |
commit | 1139f7cad59aa562eb1a7f7691c00392206e73fd (patch) | |
tree | b97dacb336af0638e8b1583af283269d5645a4c7 /lib/popularnoticesection.php | |
parent | c74943e5985c7a096db3c1fc8f34a6e97c8c1efa (diff) | |
parent | 788dd66dbe75db5d09c0cd5b33bb3347233cbd15 (diff) |
Merge commit 'br3nda/0.8.x-pgfixes' into 0.8.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')), |