diff options
author | Dries Buytaert <dries@buytaert.net> | 2004-06-19 10:39:36 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2004-06-19 10:39:36 +0000 |
commit | cbc230a36c16fc246064e9e8c2766cae951ef99c (patch) | |
tree | f2f885568eaff4d3968bc48540ef2af73218f5f6 /includes | |
parent | c51805aa8a1444db173c63881e2e7147d7d4839b (diff) | |
download | brdo-cbc230a36c16fc246064e9e8c2766cae951ef99c.tar.gz brdo-cbc230a36c16fc246064e9e8c2766cae951ef99c.tar.bz2 |
- Patch #7696 by TDobes: renamed 'static' to 'sticky' which is a more
logical name. Requires a database upgrade.
Diffstat (limited to 'includes')
-rw-r--r-- | includes/pager.inc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/includes/pager.inc b/includes/pager.inc index c15515589..7dc4221b4 100644 --- a/includes/pager.inc +++ b/includes/pager.inc @@ -15,8 +15,8 @@ * by the query to (among others) compute the number of pages (= number of all * records / number of records per page). This is done by inserting "COUNT(*)" * in the original query, ie. by rewriting the original query, say "SELECT nid, - * type FROM node WHERE status = '1' ORDER BY static DESC, created DESC" to read - * "SELECT COUNT(*) FROM node WHERE status = '1' ORDER BY static DESC, created + * type FROM node WHERE status = '1' ORDER BY sticky DESC, created DESC" to read + * "SELECT COUNT(*) FROM node WHERE status = '1' ORDER BY sticky DESC, created * DESC". Rewriting the query is accomplished using a regular expression. * * Unfortunately, the rewrite rule does not always work as intended for queries |