From cbc230a36c16fc246064e9e8c2766cae951ef99c Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Sat, 19 Jun 2004 10:39:36 +0000 Subject: - Patch #7696 by TDobes: renamed 'static' to 'sticky' which is a more logical name. Requires a database upgrade. --- includes/pager.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'includes') 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 -- cgit v1.2.3