/[drupal]/drupal/includes/pager.inc
ViewVC logotype

Log of /drupal/includes/pager.inc

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Links to HEAD: (view) (download) (as text) (annotate)
Sticky Tag:

Revision 1.76 - (view) (download) (as text) (annotate) - [select for diffs]
Sat Nov 14 20:20:06 2009 UTC (11 days, 14 hours ago) by dries
Branch: MAIN
CVS Tags: HEAD
Changes since 1.75: +2 -2 lines
Diff to previous 1.75
- Patch #266434 by catch, merlinofchaos, sun: fixed E_NOTICE in pager_load_array().

Revision 1.75 - (view) (download) (as text) (annotate) - [select for diffs]
Sat Oct 31 18:12:26 2009 UTC (3 weeks, 4 days ago) by dries
Branch: MAIN
CVS Tags: DRUPAL-7-0-UNSTABLE-10
Changes since 1.74: +2 -2 lines
Diff to previous 1.74
- Patch #321023 by Everett Zufelt, mgifford: improve accesibility in pager.inc.

Revision 1.74 - (view) (download) (as text) (annotate) - [select for diffs]
Fri Oct 9 00:59:54 2009 UTC (6 weeks, 6 days ago) by dries
Branch: MAIN
Changes since 1.73: +97 -64 lines
Diff to previous 1.73
- Patch #572618 by effulgentsia, pwolanin, sun: all theme functions should take a single argument. Code clean-up and performance improvement. Woot.

Revision 1.73 - (view) (download) (as text) (annotate) - [select for diffs]
Tue Sep 29 15:31:13 2009 UTC (8 weeks, 1 day ago) by dries
Branch: MAIN
Changes since 1.72: +13 -14 lines
Diff to previous 1.72
- Patch #578520 by sun | c960657, mfb, Dries, catch, mattyoung: make  in url() only accept an array. Another nice API clean-up!

Revision 1.72 - (view) (download) (as text) (annotate) - [select for diffs]
Fri Sep 18 00:04:21 2009 UTC (2 months, 1 week ago) by webchick
Branch: MAIN
Changes since 1.71: +1 -71 lines
Diff to previous 1.71
#564394 by Berdir and Crell: Removed database BC layer. nah nah nah nah... hey hey hey... gooood byeeee...

Revision 1.71 - (view) (download) (as text) (annotate) - [select for diffs]
Wed Aug 26 04:58:23 2009 UTC (3 months ago) by webchick
Branch: MAIN
CVS Tags: DRUPAL-7-0-UNSTABLE-9
Changes since 1.70: +16 -1 lines
Diff to previous 1.70
#496516 by Crell and Berdir: Moved query_alter() into a preExecute() method, so that modules can know the final query/arguments before they are run.

Revision 1.70 - (view) (download) (as text) (annotate) - [select for diffs]
Sat Aug 22 14:34:18 2009 UTC (3 months ago) by webchick
Branch: MAIN
Changes since 1.69: +11 -11 lines
Diff to previous 1.69
#326539 by JohnAlbin, sun, cha0s, ultimateboy, Rob Loach, Damien Tournoud: Convert 'class' attribute to use an array, not a string.

Revision 1.69 - (view) (download) (as text) (annotate) - [select for diffs]
Tue Aug 11 16:43:11 2009 UTC (3 months, 2 weeks ago) by webchick
Branch: MAIN
Changes since 1.68: +5 -3 lines
Diff to previous 1.68
#514914 by Gábor Hojtsy: Add back removed pager_limits variable.

Revision 1.68 - (view) (download) (as text) (annotate) - [select for diffs]
Tue Jul 28 19:18:05 2009 UTC (3 months, 4 weeks ago) by dries
Branch: MAIN
Changes since 1.67: +2 -2 lines
Diff to previous 1.67
- Patch #491556 by Berdir: completed converting core to DBTNG. Oh my. Kudos to Berdir for this humongous effort.

Revision 1.59.2.1 - (view) (download) (as text) (annotate) - [select for diffs]
Wed Jul 1 20:52:11 2009 UTC (4 months, 3 weeks ago) by drumm
Branch: DRUPAL-5
CVS Tags: DRUPAL-5-19, DRUPAL-5-20
Changes since 1.59: +2 -2 lines
Diff to previous 1.59 , to next main 1.76
Drupal 5.19

Revision 1.63.2.1 - (view) (download) (as text) (annotate) - [select for diffs]
Wed Jul 1 20:51:55 2009 UTC (4 months, 3 weeks ago) by goba
Branch: DRUPAL-6
CVS Tags: DRUPAL-6-13, DRUPAL-6-14
Changes since 1.63: +2 -2 lines
Diff to previous 1.63 , to next main 1.76
Drupal 6.13

Revision 1.67 - (view) (download) (as text) (annotate) - [select for diffs]
Tue May 12 18:26:41 2009 UTC (6 months, 2 weeks ago) by dries
Branch: MAIN
CVS Tags: DRUPAL-7-0-UNSTABLE-7, DRUPAL-7-0-UNSTABLE-8
Changes since 1.66: +5 -1 lines
Diff to previous 1.66
- Patch #430904 by Berdir: fixed notice in case there are two pagers on one page.

Revision 1.66 - (view) (download) (as text) (annotate) - [select for diffs]
Sun Apr 26 19:44:37 2009 UTC (7 months ago) by dries
Branch: MAIN
Changes since 1.65: +14 -24 lines
Diff to previous 1.65
- Patch #330748 by stBorchert: remove  from theme_pager*.

Revision 1.65 - (view) (download) (as text) (annotate) - [select for diffs]
Sun Feb 22 16:53:41 2009 UTC (9 months ago) by dries
Branch: MAIN
CVS Tags: DRUPAL-7-0-UNSTABLE-6
Changes since 1.64: +145 -1 lines
Diff to previous 1.64
- Patch #299267 by Crell: add extender support to the SELECT query builder.

Revision 1.64 - (view) (download) (as text) (annotate) - [select for diffs]
Sun Oct 12 04:30:05 2008 UTC (13 months, 2 weeks ago) by webchick
Branch: MAIN
CVS Tags: DRUPAL-7-0-UNSTABLE-2, DRUPAL-7-0-UNSTABLE-3, DRUPAL-7-0-UNSTABLE-4, DRUPAL-7-0-UNSTABLE-5
Changes since 1.63: +2 -2 lines
Diff to previous 1.63
#282405 by Damien Tournoud, lilou, Dave Reid: Enforce coding standard on elseif.

Revision 1.63 - (view) (download) (as text) (annotate) - [select for diffs]
Thu Dec 6 09:58:30 2007 UTC (23 months, 3 weeks ago) by goba
Branch: MAIN
CVS Tags: DRUPAL-6-0, DRUPAL-6-0-RC-1, DRUPAL-6-0-RC-2, DRUPAL-6-0-RC-3, DRUPAL-6-0-RC-4, DRUPAL-6-1, DRUPAL-6-10, DRUPAL-6-11, DRUPAL-6-12, DRUPAL-6-2, DRUPAL-6-3, DRUPAL-6-4, DRUPAL-6-5, DRUPAL-6-6, DRUPAL-6-7, DRUPAL-6-8, DRUPAL-6-9, DRUPAL-7-0-UNSTABLE-1
Branch point for: DRUPAL-6
Changes since 1.62: +3 -1 lines
Diff to previous 1.62
#196667 (GHOP 45) by fberci: add '@ingroup themeable' to all themeable functions

Revision 1.62 - (view) (download) (as text) (annotate) - [select for diffs]
Thu Aug 2 10:58:41 2007 UTC (2 years, 3 months ago) by dries
Branch: MAIN
CVS Tags: DRUPAL-6-0-BETA-1, DRUPAL-6-0-BETA-2, DRUPAL-6-0-BETA-3, DRUPAL-6-0-BETA-4
Changes since 1.61: +5 -5 lines
Diff to previous 1.61
- Patch #163508 by profix898: fixed 4 E_ALL notices.

Revision 1.61 - (view) (download) (as text) (annotate) - [select for diffs]
Tue May 1 06:53:02 2007 UTC (2 years, 6 months ago) by dries
Branch: MAIN
Changes since 1.60: +105 -95 lines
Diff to previous 1.60
- Patch #135931 by EclipseGc: semantic update for core pager.

Revision 1.60 - (view) (download) (as text) (annotate) - [select for diffs]
Thu Feb 15 11:40:17 2007 UTC (2 years, 9 months ago) by dries
Branch: MAIN
Changes since 1.59: +2 -2 lines
Diff to previous 1.59
- Patch #111347 by Steven: refactor url() and l().

Revision 1.59 - (view) (download) (as text) (annotate) - [select for diffs]
Sun Oct 15 19:57:05 2006 UTC (3 years, 1 month ago) by dries
Branch: MAIN
CVS Tags: DRUPAL-5-0, DRUPAL-5-0-BETA-1, DRUPAL-5-0-BETA-2, DRUPAL-5-0-RC-1, DRUPAL-5-0-RC-2, DRUPAL-5-1, DRUPAL-5-10, DRUPAL-5-11, DRUPAL-5-12, DRUPAL-5-13, DRUPAL-5-14, DRUPAL-5-15, DRUPAL-5-16, DRUPAL-5-17, DRUPAL-5-18, DRUPAL-5-2, DRUPAL-5-3, DRUPAL-5-4, DRUPAL-5-5, DRUPAL-5-6, DRUPAL-5-7, DRUPAL-5-8, DRUPAL-5-9
Branch point for: DRUPAL-5
Changes since 1.58: +2 -2 lines
Diff to previous 1.58
- Patch #87995 by merlinofchaos: added missing css.

Revision 1.58 - (view) (download) (as text) (annotate) - [select for diffs]
Sun Aug 27 12:43:18 2006 UTC (3 years, 3 months ago) by dries
Branch: MAIN
Changes since 1.57: +2 -2 lines
Diff to previous 1.57
- Patch #80934 by timnc: more t() fixes.

Revision 1.54.2.1 - (view) (download) (as text) (annotate) - [select for diffs]
Thu Aug 24 08:54:36 2006 UTC (3 years, 3 months ago) by killes
Branch: DRUPAL-4-7
CVS Tags: DRUPAL-4-7-10, DRUPAL-4-7-11, DRUPAL-4-7-4, DRUPAL-4-7-5, DRUPAL-4-7-6, DRUPAL-4-7-7, DRUPAL-4-7-8, DRUPAL-4-7-9
Changes since 1.54: +2 -2 lines
Diff to previous 1.54 , to next main 1.76
#80200 by gorgen. More strict pager query regexp.
Also a patch which somehow didn't get committed, issue #50025

Revision 1.57 - (view) (download) (as text) (annotate) - [select for diffs]
Thu Aug 24 08:49:04 2006 UTC (3 years, 3 months ago) by drumm
Branch: MAIN
Changes since 1.56: +2 -2 lines
Diff to previous 1.56
#80200 by gorgen. More strict pager query regexp.

Revision 1.56 - (view) (download) (as text) (annotate) - [select for diffs]
Wed Aug 16 19:52:37 2006 UTC (3 years, 3 months ago) by dries
Branch: MAIN
Changes since 1.55: +5 -13 lines
Diff to previous 1.55
- Patch #78364 by chx: remove pager cruft.

Revision 1.55 - (view) (download) (as text) (annotate) - [select for diffs]
Wed Jul 5 11:45:51 2006 UTC (3 years, 4 months ago) by dries
Branch: MAIN
Changes since 1.54: +2 -2 lines
Diff to previous 1.54
- Patch #72204 by nedjo: upper-cased all TRUE/FALSE/NULL constants.

Revision 1.54 - (view) (download) (as text) (annotate) - [select for diffs]
Thu Apr 13 08:25:27 2006 UTC (3 years, 7 months ago) by killes
Branch: MAIN
CVS Tags: DRUPAL-4-7-0, DRUPAL-4-7-0-RC-3, DRUPAL-4-7-0-RC-4, DRUPAL-4-7-1, DRUPAL-4-7-2, DRUPAL-4-7-3
Branch point for: DRUPAL-4-7
Changes since 1.53: +23 -3 lines
Diff to previous 1.53
#5371, drupal_get_destination, pager and tablesort array handling, patch by Steven

Revision 1.53 - (view) (download) (as text) (annotate) - [select for diffs]
Sun Jan 15 16:55:35 2006 UTC (3 years, 10 months ago) by dries
Branch: MAIN
CVS Tags: DRUPAL-4-7-0-BETA-4, DRUPAL-4-7-0-BETA-5, DRUPAL-4-7-0-BETA-6, DRUPAL-4-7-0-RC-1, DRUPAL-4-7-0-RC-2
Changes since 1.52: +2 -2 lines
Diff to previous 1.52
- Patch #44771 by jvandyk: small performance improvement.

Revision 1.52 - (view) (download) (as text) (annotate) - [select for diffs]
Sun Jan 15 00:04:20 2006 UTC (3 years, 10 months ago) by unconed
Branch: MAIN
Changes since 1.51: +26 -10 lines
Diff to previous 1.51
- #44498: Clean up pager / make more accessible

Revision 1.51 - (view) (download) (as text) (annotate) - [select for diffs]
Sat Jan 14 09:40:22 2006 UTC (3 years, 10 months ago) by dries
Branch: MAIN
Changes since 1.50: +52 -54 lines
Diff to previous 1.50
- Patch #44498 by m3vrck: improved HTML generated code for pagers.

Revision 1.50 - (view) (download) (as text) (annotate) - [select for diffs]
Sat Dec 10 19:26:47 2005 UTC (3 years, 11 months ago) by dries
Branch: MAIN
CVS Tags: DRUPAL-4-7-0-BETA-3
Changes since 1.49: +1 -1 lines
Diff to previous 1.49
- Patch #40393 by Richard: corrected permissions of menu/path settings on the content submission form.

Revision 1.49 - (view) (download) (as text) (annotate) - [select for diffs]
Sat Oct 22 15:14:46 2005 UTC (4 years, 1 month ago) by dries
Branch: MAIN
Changes since 1.48: +5 -5 lines
Diff to previous 1.48
- Patch #30930 by m3avrck/deekayen: cured PHP5 warnings.

Revision 1.48 - (view) (download) (as text) (annotate) - [select for diffs]
Fri Oct 21 10:58:15 2005 UTC (4 years, 1 month ago) by unconed
Branch: MAIN
Changes since 1.47: +8 -12 lines
Diff to previous 1.47
- #32603: Clean up theme_pager_link (drumm)

Revision 1.47 - (view) (download) (as text) (annotate) - [select for diffs]
Thu Aug 25 21:14:16 2005 UTC (4 years, 3 months ago) by dries
Branch: MAIN
Changes since 1.46: +2 -2 lines
Diff to previous 1.46
- Patch #29385 by chx: no ?> add end of files.

Revision 1.46 - (view) (download) (as text) (annotate) - [select for diffs]
Wed Aug 10 20:50:14 2005 UTC (4 years, 3 months ago) by dries
Branch: MAIN
Changes since 1.45: +1 -30 lines
Diff to previous 1.45
- Patch #27980 by Neil Drumm: removed unused function.

Revision 1.45 - (view) (download) (as text) (annotate) - [select for diffs]
Sat Jul 30 12:52:54 2005 UTC (4 years, 3 months ago) by unconed
Branch: MAIN
Changes since 1.44: +3 -3 lines
Diff to previous 1.44
- #24673: Fix deprecated usage of implode

Revision 1.44 - (view) (download) (as text) (annotate) - [select for diffs]
Wed May 25 05:42:05 2005 UTC (4 years, 6 months ago) by unconed
Branch: MAIN
Changes since 1.43: +4 -4 lines
Diff to previous 1.43
- Fix mistakes in pager patch.

Revision 1.43 - (view) (download) (as text) (annotate) - [select for diffs]
Wed May 25 03:29:06 2005 UTC (4 years, 6 months ago) by unconed
Branch: MAIN
Changes since 1.42: +78 -65 lines
Diff to previous 1.42
- #23495: Clean up pager code. Now uses $page instead of $from, and counts pages, not items.

Revision 1.42 - (view) (download) (as text) (annotate) - [select for diffs]
Thu Mar 31 09:25:33 2005 UTC (4 years, 7 months ago) by unconed
Branch: MAIN
CVS Tags: DRUPAL-4-6-0, DRUPAL-4-6-1, DRUPAL-4-6-10, DRUPAL-4-6-11, DRUPAL-4-6-2, DRUPAL-4-6-3, DRUPAL-4-6-4, DRUPAL-4-6-5, DRUPAL-4-6-6, DRUPAL-4-6-7, DRUPAL-4-6-8, DRUPAL-4-6-9
Branch point for: DRUPAL-4-6
Changes since 1.41: +4 -4 lines
Diff to previous 1.41
- #18817: Clean up plain-text checking (see drupal-devel!)

Revision 1.41 - (view) (download) (as text) (annotate) - [select for diffs]
Fri Jan 28 18:44:17 2005 UTC (4 years, 9 months ago) by dries
Branch: MAIN
Changes since 1.40: +2 -2 lines
Diff to previous 1.40
- Patch by Remco: <div> -> </div>.

Revision 1.40 - (view) (download) (as text) (annotate) - [select for diffs]
Thu Jan 27 19:01:01 2005 UTC (4 years, 9 months ago) by dries
Branch: MAIN
Changes since 1.39: +2 -2 lines
Diff to previous 1.39
- Patch by Jeremy: fixed unclosed "

Revision 1.39 - (view) (download) (as text) (annotate) - [select for diffs]
Thu Jan 27 15:53:58 2005 UTC (4 years, 9 months ago) by dries
Branch: MAIN
Changes since 1.38: +9 -9 lines
Diff to previous 1.38
- Patch by Jeremy: made the diffs more meaningful.

Revision 1.38 - (view) (download) (as text) (annotate) - [select for diffs]
Thu Jan 27 14:30:33 2005 UTC (4 years, 9 months ago) by dries
Branch: MAIN
Changes since 1.37: +60 -28 lines
Diff to previous 1.37
- Patch #16273 by Jeremy: improved the themability of the pager.

Revision 1.37 - (view) (download) (as text) (annotate) - [select for diffs]
Mon Dec 6 11:57:04 2004 UTC (4 years, 11 months ago) by unconed
Branch: MAIN
Changes since 1.36: +9 -8 lines
Diff to previous 1.36
Pager_query's count query was broken if no query arguments were given.

Revision 1.36 - (view) (download) (as text) (annotate) - [select for diffs]
Sat Dec 4 17:22:08 2004 UTC (4 years, 11 months ago) by dries
Branch: MAIN
Changes since 1.35: +8 -3 lines
Diff to previous 1.35
- Patch by Steven: fixed bug in pager_query().

Revision 1.35 - (view) (download) (as text) (annotate) - [select for diffs]
Thu Dec 2 07:06:33 2004 UTC (4 years, 11 months ago) by unconed
Branch: MAIN
Changes since 1.34: +5 -1 lines
Diff to previous 1.34
Fix for pager_query() after #13581 (array of query arguments).

Revision 1.34 - (view) (download) (as text) (annotate) - [select for diffs]
Mon Nov 29 13:10:43 2004 UTC (4 years, 11 months ago) by dries
Branch: MAIN
Changes since 1.33: +7 -5 lines
Diff to previous 1.33
- Patch #13581 by Steven: Db_query() allows a variable amount of parameters so you can pass the query arguments in. There is however an alternative syntax: instead of passing the query arguments as function arguments, you can also pass a single array with the query arguments in it. For example the following two statements are equivalent:

db_query($query, $a, $b, $c);
db_query($query, array($a, $b, $c));

This usage is particularly interesting when the query is constructed dynamically, and the amount of arguments to pass varies. In that case we use the second method to avoid using call_user_func_array(). This behaviour is not documented explicitly, but it is used in several places.

However, db_query_range() and pager_query() do not support this syntax properly, which means there are several pieces of code which still revert to the ugly call_user_func_array() call.

This patch updates db_query_range() and pager_query() so they support the array-passing method. I also added documentation about this method to each of the db functions.

I also cleaned up the code for db_query (it was weird and hard to understand) and moved db_query() and db_queryd() from database.xxxxx.inc to database.inc: it was the same between both mysql and pgsql, as it doesn't do anything database specific. It just prefixes the tables and inserts the arguments. The actual db query is performed in _db_query(), which is still in database.xxxxx.inc.

Finally, I updated several places with the new syntax, and the code is a lot cleaner. For example:
- array_unshift($params, "SELECT u.* FROM {users} u WHERE $query u.status < 3");
- $params[] = 0;
- $params[] = 1;
- $result = call_user_func_array('db_query_range', $params);
+ $result = db_query_range("SELECT u.* FROM {users} u WHERE $query u.status < 3", $params, 0, 1);

and

- return call_user_func_array('db_query_range', array_merge(array($query), $args, array((int)$pager_from_array[$element], (int)$limit)));
+ return db_query_range($query, $args, (int)$pager_from_array[$element], (int)$limit);

I've tested it on mysql. I didn't alter the actual db behaviour, so pgsql should be okay too.

This patch is important because many people avoid the call_user_func_array() method and put data directly into the db query.  This is very, very bad because the database prefix will be applied to it, and strip out braces. It's also generally bad form as you have to call check_query() yourself.  With the new, documented syntax, there is no more excuse to put data directly in the query.

Revision 1.32.2.1 - (view) (download) (as text) (annotate) - [select for diffs]
Sun Oct 31 07:59:47 2004 UTC (5 years ago) by dries
Branch: DRUPAL-4-5
CVS Tags: DRUPAL-4-5-1, DRUPAL-4-5-2, DRUPAL-4-5-3, DRUPAL-4-5-4, DRUPAL-4-5-5, DRUPAL-4-5-6, DRUPAL-4-5-7, DRUPAL-4-5-8
Changes since 1.32: +4 -3 lines
Diff to previous 1.32 , to next main 1.76
- Patch #7161 by jhriggs: fixed probem with 'last page' link not being correct under certain circumstances.

Revision 1.33 - (view) (download) (as text) (annotate) - [select for diffs]
Sun Oct 31 07:59:18 2004 UTC (5 years ago) by dries
Branch: MAIN
Changes since 1.32: +4 -3 lines
Diff to previous 1.32
- Patch #7161 by jhriggs: fixed probem with 'last page' link not being correct under certain circumstances.

Revision 1.32 - (view) (download) (as text) (annotate) - [select for diffs]
Thu Sep 9 05:51:08 2004 UTC (5 years, 2 months ago) by dries
Branch: MAIN
CVS Tags: DRUPAL-4-5-0
Branch point for: DRUPAL-4-5
Changes since 1.31: +16 -20 lines
Diff to previous 1.31
- Patch #10663 by JonBob: documentation improvements: fixed some typos and improved consistency to the use of Doxygen/api.module commands in the comments.

Revision 1.31 - (view) (download) (as text) (annotate) - [select for diffs]
Thu Aug 12 05:46:37 2004 UTC (5 years, 3 months ago) by dries
Branch: MAIN
Changes since 1.30: +2 -2 lines
Diff to previous 1.30
- Patch #7535 by Gerhard: one could not search for the word 'From'.

Revision 1.30 - (view) (download) (as text) (annotate) - [select for diffs]
Sun Jul 25 14:25:41 2004 UTC (5 years, 4 months ago) by dries
Branch: MAIN
Changes since 1.29: +13 -9 lines
Diff to previous 1.29
- Patch #9478 by JonBob: allow printf-style arguments in pager_query.

  Currently pager_query() is the black sheep of the database query family, because it does not allow for printf-style arguments to be inserted in the query. This is a problem because it introduces developer confusion when moving from an unpaged query to a paged one, and it encourages substitution of variables directly into the query, which can bypass our check_query() security feature.

  This patch adds this ability to pager_query(). The change is backwards-compatible, but a couple calls to the function in core have been changed to use the new capability.

Revision 1.29 - (view) (download) (as text) (annotate) - [select for diffs]
Thu Jul 22 16:06:54 2004 UTC (5 years, 4 months ago) by unconed
Branch: MAIN
Changes since 1.28: +174 -122 lines
Diff to previous 1.28
- #9287: More doxygen/documentation fixes by JonBob

Revision 1.28 - (view) (download) (as text) (annotate) - [select for diffs]
Fri Jul 2 18:46:40 2004 UTC (5 years, 4 months ago) by dries
Branch: MAIN
Changes since 1.27: +5 -3 lines
Diff to previous 1.27
- Patch #8973 by JonBob: Drupal contains many undefined variables and array indices, which makes PHP throw a lot of warnings when the reporting level is set to E_ALL. Things run fine with these warnings, but as a matter of code style if nothing else we should probably strive to avoid them. The attached fixes most of the more egregious offenders (about 95% of the warnings when I load /node on my test site).

Revision 1.27 - (view) (download) (as text) (annotate) - [select for diffs]
Tue Jun 22 05:45:15 2004 UTC (5 years, 5 months ago) by dries
Branch: MAIN
Changes since 1.26: +2 -2 lines
Diff to previous 1.26
- Issue #8735 by njivy: made the pager code ignore EOLs.

Revision 1.26 - (view) (download) (as text) (annotate) - [select for diffs]
Mon Jun 21 20:05:37 2004 UTC (5 years, 5 months ago) by dries
Branch: MAIN
Changes since 1.25: +3 -3 lines
Diff to previous 1.25
- Patch #8670 by asimmonds: more spelling fixes.

Revision 1.25 - (view) (download) (as text) (annotate) - [select for diffs]
Sat Jun 19 10:39:35 2004 UTC (5 years, 5 months ago) by dries
Branch: MAIN
Changes since 1.24: +3 -3 lines
Diff to previous 1.24
- Patch #7696 by TDobes: renamed 'static' to 'sticky' which is a more
  logical name.  Requires a database upgrade.

Revision 1.23.2.1 - (view) (download) (as text) (annotate) - [select for diffs]
Thu Apr 15 22:19:08 2004 UTC (5 years, 7 months ago) by dries
Branch: DRUPAL-4-4
CVS Tags: DRUPAL-4-4-1, DRUPAL-4-4-2, DRUPAL-4-4-3
Changes since 1.23: +2 -2 lines
Diff to previous 1.23 , to next main 1.76
- Patch #7161 by jhriggs: fixed bug with 'last page' functionality.

Revision 1.16.4.1 - (view) (download) (as text) (annotate) - [select for diffs]
Thu Apr 15 22:18:53 2004 UTC (5 years, 7 months ago) by dries
Branch: DRUPAL-4-3
Changes since 1.16: +2 -2 lines
Diff to previous 1.16 , to next main 1.76
- Patch #7161 by jhriggs: fixed bug with 'last page' functionality.

Revision 1.24 - (view) (download) (as text) (annotate) - [select for diffs]
Thu Apr 15 22:18:08 2004 UTC (5 years, 7 months ago) by dries
Branch: MAIN
Changes since 1.23: +2 -2 lines
Diff to previous 1.23
- Patch #7161 by jhriggs: fixed bug with 'last page' functionality.

Revision 1.23 - (view) (download) (as text) (annotate) - [select for diffs]
Sun Feb 15 16:04:36 2004 UTC (5 years, 9 months ago) by dries
Branch: MAIN
CVS Tags: DRUPAL-4-4-0
Branch point for: DRUPAL-4-4
Changes since 1.22: +10 -8 lines
Diff to previous 1.22
- Patch 5834 by Jeremy: made multiple pagers on one page work.

Revision 1.22 - (view) (download) (as text) (annotate) - [select for diffs]
Tue Jan 6 19:52:14 2004 UTC (5 years, 10 months ago) by kjartan
Branch: MAIN
Changes since 1.21: +5 -5 lines
Diff to previous 1.21
- New and updated doxygen comments.

Revision 1.21 - (view) (download) (as text) (annotate) - [select for diffs]
Mon Dec 22 17:30:43 2003 UTC (5 years, 11 months ago) by dries
Branch: MAIN
Changes since 1.20: +2 -2 lines
Diff to previous 1.20
- Accessibility improvement: changed a <b>-tag to a <strong>-tag, used to
  indicated the current page.

Revision 1.20 - (view) (download) (as text) (annotate) - [select for diffs]
Mon Dec 8 18:30:20 2003 UTC (5 years, 11 months ago) by dries
Branch: MAIN
Changes since 1.19: +4 -57 lines
Diff to previous 1.19
- Improvements by Goba:
  + removes the lots of pagers and indirect pager themeing
  + add the theme_pager() function, which should be called as
    theme("pager", ...) to get a pager.

Revision 1.19 - (view) (download) (as text) (annotate) - [select for diffs]
Mon Dec 8 06:32:18 2003 UTC (5 years, 11 months ago) by dries
Branch: MAIN
Changes since 1.18: +93 -89 lines
Diff to previous 1.18
- Tidied up the DoxyGen comments.  Patch by Kjartan.

Revision 1.18 - (view) (download) (as text) (annotate) - [select for diffs]
Mon Nov 24 22:46:03 2003 UTC (6 years ago) by dries
Branch: MAIN
Changes since 1.17: +112 -83 lines
Diff to previous 1.17
Patch by Ax to fixe and improve to the core doxygen PHPdoc:

  * fixes all doxygen warnings [#]_ in the current code base
    + changes @param style from phpDocumentor (@param type $var desc) to doxygen (@param $var desc)
    + documents all undocumented parameters
    + escapes / fixes html warnings
    + fixes @defgroup in theme.inc
  * adds more groupings [#]_
    + drupal_{set|get}_title, drupal_{set|get}_breadcrumb
    + pager.inc: pager_api (pager_query(), pager_display()), pager pieces
  * adds a new group "themeable" which contains all themeable functions.

Revision 1.17 - (view) (download) (as text) (annotate) - [select for diffs]
Sun Nov 9 23:27:15 2003 UTC (6 years ago) by dries
Branch: MAIN
Changes since 1.16: +6 -6 lines
Diff to previous 1.16
- Committed stage 2 of the theme system improvements!  Patch by CodeMonkeyX.

Revision 1.16 - (view) (download) (as text) (annotate) - [select for diffs]
Wed Jun 4 18:24:25 2003 UTC (6 years, 5 months ago) by dries
Branch: MAIN
CVS Tags: DRUPAL-4-2-0, DRUPAL-4-3-0, DRUPAL-4-3-1, DRUPAL-4-3-2
Branch point for: DRUPAL-4-2, DRUPAL-4-3
Changes since 1.15: +8 -8 lines
Diff to previous 1.15
- Bugfix: renamed the SQL field 'types' to 'nodes' because 'types' is a reserved keyword in MySQL 4.  This fixes critical bug #1618.  Patch by Marco.

  ==> This fix requires to run update.php!

- Bugfix: made sessions work without warnings when register_globals is turned off. The solution is to use $_SESSION instead of session_register().  This fixes critical bug #1797.  Patch by Marco.

- Bugfix: sometimes error messages where being discarded when previewing a node.  Patch by Craig Courtney.

- Bugfix: fixed charset problems.  This fixes critical bug #1549.  Patch '0023.charset.patch' by Al.

- Code improvements: removed some dead code from the comment module.  Patch by Marco.

- Documentation improvements: polished the node module help texts and form descriptions.  Patch '0019.node.module.help.patch' by Al.

- CSS improvements all over the map!  Patch '0021.more.css.patch' by Al.

- GUI improvements: improved the position of Druplicon in the admin menu.  Patch '0020.admin.logo.patch' by Al.

- GUI improvements: new logos for theme Marvin and theme UnConeD.  Logos by Kristjan Jansen.

- GUI improvements: small changes to the output emitted by the profile module.  Suggestions by Steven Wittens.

- GUI improvements: small fixes to Xtemplate.  Patch '0022.xtemplate.css.patch' by Al.

TODO:

- Some modules such as the buddy list module and the annotation module in the contributions repository are also using session_register().  They should be updated.  We should setup a task on Drupal.

- There is code emitting '<div align="right">' which doesn't validate.

- Does our XML feeds validate with the charset changes?

- The forum module's SQL doesn't work properly on PostgreSQL.

Revision 1.15 - (view) (download) (as text) (annotate) - [select for diffs]
Tue Jun 3 18:04:44 2003 UTC (6 years, 5 months ago) by dries
Branch: MAIN
Changes since 1.14: +2 -2 lines
Diff to previous 1.14
- Bugfix: made request_uri() rewrite ( and ) with their entity equivalents
to avoid XSS attacks!  Patch by Al, Moshe, Marco, Kjartan and me.

- Bugfix: the admin module does now import drupal.css prior to admin.css.
Patch by me.

- Bugfix: the admin module was still emitting a <base href=""> tag.  I
removed this as it is been taken care of by theme_head();  Patch by me.

- Bugfix: made the tracker module's pager only consider published pages.
Patch by Moshe.

- Bugfix: cured some typos in the comment module's help function.  Patch by
Marco.

- Bugfix: fixed a typo in the pager_display() that caused optional
attributes to be discarded.

- Bugfix: made the Xtemplate emit empty boxes like any other theme does.
Patch by Al.

- Bugfix: fixed broken link on the statistics module's log page.
Reported by Kjartan.

- CSS improvements: made the HTML output emitted by the tracker module
look nicer.  Patch by Moshe and Al.

- CSS improvements: added CSS classes for form elements.  Patch by Al.

- CSS improvements: added a vertical gap between the last form item and the
submit button.  Patch by Al.  Note that Opera 6 is not picking up this
CSS but apparently others browsers such as Konqueror do.

- Xtemplate improvements: changed the color of the selected day in the
archive module's calendar.  Patch by Al.

- Usability improvements: made the "birthday" field of the profile module
look nicer.  Patch by Al.

------

- TODO: it might be a good idea to emit the following meta tag in the
theme_head() function:

<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />

Currently, some themes (and modules!) emit this while others don't.  This
would also make it possible to change the charset site-wide.

- TODO: now we added support for td.dark and td.light to drupal.css, maybe
it can be removed from admin.css as well as xtemplate.css?

Revision 1.14 - (view) (download) (as text) (annotate) - [select for diffs]
Fri May 23 21:33:24 2003 UTC (6 years, 6 months ago) by dries
Branch: MAIN
Changes since 1.13: +4 -3 lines
Diff to previous 1.13
- Fixed a register globals problem in the pager.  Patch by Al.  (I also
  removed a dead global variable.)

Revision 1.13 - (view) (download) (as text) (annotate) - [select for diffs]
Tue May 13 18:36:33 2003 UTC (6 years, 6 months ago) by dries
Branch: MAIN
Changes since 1.12: +2 -2 lines
Diff to previous 1.12
- Fixed a typo in the PostgreSQL database scheme.  Patch by Michael Frankowski.

- Fixed a typo in the MSSQL database scheme.  Patch by Michael Frankowski.

- Removed dependency on "register_globals = on"!  Patches by Michael Frankowski.

  Notes:

  + Updated the patches to use $foo["bar"] instead of $foo['bar'].
  + Updated the INSTALL and CHANGELOG files as well.

- Tiny improvement to the "./scripts/code-clean.sh" script.

Revision 1.12 - (view) (download) (as text) (annotate) - [select for diffs]
Sun Mar 16 07:02:16 2003 UTC (6 years, 8 months ago) by dries
Branch: MAIN
Changes since 1.11: +4 -2 lines
Diff to previous 1.11
- All LIMIT queries must go through the pager or through db_query_range().
  The syntax for db_query_range() was enhanced so it matches db_query(). So
  you may pass extra arguments of the SQL statement which are checked via
  check_query() and then substituted into the SQL statement. After these
  optional arguments, you always pass $from and $count parameters which
  define your range.  Most often, the $from is 0 and the count is the max
  number of records you want returned.  Patch by Moshe.

- The pager_query() function for PEAR was enhanced so that it adds  proper
  GROUP BY statement counting the number of records to be paged. Patch by
  James Arthur.

- MSSQL database scheme by Moshe.

Revision 1.11 - (view) (download) (as text) (annotate) - [select for diffs]
Wed Mar 12 20:45:24 2003 UTC (6 years, 8 months ago) by dries
Branch: MAIN
Changes since 1.10: +12 -9 lines
Diff to previous 1.10
- Patch by Kjartan:
   + Pager is not generated when there are less results than the limit.
   + Fixes ugly blank rows in administration pages when there is just one
     page.

Revision 1.10 - (view) (download) (as text) (annotate) - [select for diffs]
Tue Feb 11 20:01:16 2003 UTC (6 years, 9 months ago) by dries
Branch: MAIN
Changes since 1.9: +2 -2 lines
Diff to previous 1.9
- See http://lists.drupal.org/pipermail/drupal-devel/2003-February/021824.html.

Revision 1.9 - (view) (download) (as text) (annotate) - [select for diffs]
Tue Jan 21 22:57:43 2003 UTC (6 years, 10 months ago) by dries
Branch: MAIN
Changes since 1.8: +3 -3 lines
Diff to previous 1.8
- Patch by Ulf: XHTML-ified the code.

Revision 1.8 - (view) (download) (as text) (annotate) - [select for diffs]
Mon Jan 20 19:54:11 2003 UTC (6 years, 10 months ago) by dries
Branch: MAIN
Changes since 1.7: +2 -2 lines
Diff to previous 1.7
- Replaced "&" by "&amp;".  Patch by Ulf.

Revision 1.7 - (view) (download) (as text) (annotate) - [select for diffs]
Wed Jan 15 23:01:41 2003 UTC (6 years, 10 months ago) by dries
Branch: MAIN
Changes since 1.6: +38 -23 lines
Diff to previous 1.6
Patch by Marco:

- forum: fixed link to new topic
- forum: new topic shows default forum correctly
- forum: first_new is back; the anchor didn't consider multiple pages
- forum: use standard pager, needed some changes/fixes to pager.inc
- forum: some cleanup
- forum: taxonomy hook
- renamed first_new to simply new
- added an optional parameter to pager_query for the count query
- used the optional count param for paging forum topics
- internal change: moving a topic doesn't duplicate the node anymore but just
  changes the forum (term); no change in functionality, and shadow still
  works (suggested by Dries).  This probably also made some queries somewhat
  lighter.
- bug fixed: anonymous users always saw "n (n new)" in the replies column
- updated pager help and moved from _help to phpdoc

Revision 1.6 - (view) (download) (as text) (annotate) - [select for diffs]
Thu Jan 9 19:53:51 2003 UTC (6 years, 10 months ago) by dries
Branch: MAIN
Changes since 1.5: +8 -10 lines
Diff to previous 1.5
- Fixed the pager.  It might not be 100% correct, but it will work in 95%
  of the cases.

Revision 1.5 - (view) (download) (as text) (annotate) - [select for diffs]
Mon Jan 6 19:50:59 2003 UTC (6 years, 10 months ago) by dries
Branch: MAIN
Changes since 1.4: +3 -2 lines
Diff to previous 1.4
- Clean URL patch.

Revision 1.4 - (view) (download) (as text) (annotate) - [select for diffs]
Sat Dec 14 11:55:52 2002 UTC (6 years, 11 months ago) by dries
Branch: MAIN
Changes since 1.3: +60 -87 lines
Diff to previous 1.3
- Committed Marco's pager improvements.

- Fixed another annoyance with editing content.

Revision 1.3 - (view) (download) (as text) (annotate) - [select for diffs]
Tue Nov 26 19:24:20 2002 UTC (7 years ago) by dries
Branch: MAIN
CVS Tags: DRUPAL-4-1-0
Branch point for: DRUPAL-4-1
Changes since 1.2: +120 -91 lines
Diff to previous 1.2
- Applied Ax's pager patch: includes documentation (rewrote it somewhat) and two
  bugfixes; one that makes taxanomy based paging work (eg. index.php?and=2,3)
  and one that kills a warning when the query returns no records.

Revision 1.2 - (view) (download) (as text) (annotate) - [select for diffs]
Mon Nov 18 19:21:09 2002 UTC (7 years ago) by dries
Branch: MAIN
Changes since 1.1: +20 -17 lines
Diff to previous 1.1
- Don't display "1" when there is only one page.

Revision 1.1 - (view) (download) (as text) (annotate) - [select for diffs]
Sat Nov 9 13:59:35 2002 UTC (7 years ago) by dries
Branch: MAIN
* Added Jeremy's pager:

 "This is a simple, generic pager for Drupal-CVS.  It is designed to be
  easily themeable and expandable.  The code is highly-commented to
  enhance readability."

 "Pagers are constructed by combining the provided pieces (all of which
  can be easily modified to display the text or image you prefer) into
  your custom pager."

* Statistics module fixes by Jeremy:

 - removed superfluous check for existence of watchdog()
 - saving changes in admin page displays status and returns same page
 - no longer return 1971/01/01 in "view statistics" table
 - switched from "!=" to "<>" in SQL queries for ANSI-SQL compliance
 - switched from "MAX(timestamp) as timestamp" to "MAX(timestamp) as
   max_timestamp" moving towards ANSI-SQL compliance.

* Added a "theme_item_list" function to format itemized lists.  Also
  changed a couple of modules to take advantage of it.  Makes for a
  more consistent UI.

This form allows you to request diffs between any two revisions of this file. For each of the two "sides" of the diff, select a symbolic revision name using the selection box, or choose 'Use Text Field' and enter a numeric revision.

  Diffs between and
  Type of Diff should be a

Sort log by:

  ViewVC Help
Powered by ViewVC 1.1.2