Index: includes/locale.inc =================================================================== RCS file: /cvs/drupal/drupal/includes/locale.inc,v retrieving revision 1.76 diff -u -p -r1.76 locale.inc --- includes/locale.inc 16 May 2006 09:22:36 -0000 1.76 +++ includes/locale.inc 24 May 2006 16:08:26 -0000 @@ -1300,7 +1300,7 @@ function _locale_string_seek() { $arguments[] = $query->language; } - $result = pager_query($sql, 50, 0, NULL, $arguments); + $result = pager_query($sql, variable_get('admin_pager_long', 50), 0, NULL, $arguments); $header = array(t('String'), t('Locales'), array('data' => t('Operations'), 'colspan' => '2')); $arr = array(); @@ -1323,7 +1323,7 @@ function _locale_string_seek() { if (count($rows)) { $output .= theme('table', $header, $rows); } - if ($pager = theme('pager', NULL, 50, 0, $request)) { + if ($pager = theme('pager', NULL, variable_get('admin_pager_long', 50), 0, $request)) { $output .= $pager; } } Index: modules/aggregator.module =================================================================== RCS file: /cvs/drupal/drupal/modules/aggregator.module,v retrieving revision 1.282 diff -u -p -r1.282 aggregator.module --- modules/aggregator.module 18 May 2006 14:58:56 -0000 1.282 +++ modules/aggregator.module 24 May 2006 16:08:27 -0000 @@ -1046,7 +1046,7 @@ function _aggregator_page_list($sql, $op $form['header'] = array('#value' => $header); $output .= $form['header']['#value']; - $result = pager_query($sql, 20); + $result = pager_query($sql, variable_get('admin_pager_normal', 30)); $categories = array(); while ($item = db_fetch_object($result)) { $form['items'][$item->iid] = array('#value' => theme('aggregator_page_item', $item)); @@ -1075,7 +1075,7 @@ function _aggregator_page_list($sql, $op } $output .= ''; $form['submit'] = array('#type' => 'submit', '#value' => t('Save categories')); - $form['pager'] = array('#value' => theme('pager', NULL, 20, 0)); + $form['pager'] = array('#value' => theme('pager', NULL, variable_get('admin_pager_normal', 30), 0)); $output .= $form['pager']['#value']; // arg(1) is undefined if we are at the top aggregator URL Index: modules/comment.module =================================================================== RCS file: /cvs/drupal/drupal/modules/comment.module,v retrieving revision 1.459 diff -u -p -r1.459 comment.module --- modules/comment.module 20 May 2006 08:14:09 -0000 1.459 +++ modules/comment.module 24 May 2006 16:08:28 -0000 @@ -1011,7 +1011,7 @@ function comment_admin_overview($type = array('data' => t('Time'), 'field' => 'timestamp', 'sort' => 'desc'), array('data' => t('Operations')) )); - $result = pager_query('SELECT c.subject, c.nid, c.cid, c.comment, c.timestamp, c.status, c.name, c.homepage, u.name AS registered_name, u.uid FROM {comments} c INNER JOIN {users} u ON u.uid = c.uid WHERE c.status = %d'. tablesort_sql($form['header']['#value']), 50, 0, NULL, $status); + $result = pager_query('SELECT c.subject, c.nid, c.cid, c.comment, c.timestamp, c.status, c.name, c.homepage, u.name AS registered_name, u.uid FROM {comments} c INNER JOIN {users} u ON u.uid = c.uid WHERE c.status = %d'. tablesort_sql($form['header']['#value']), variable_get('admin_pager_long', 50), 0, NULL, $status); // build a table listing the appropriate comments $destination = drupal_get_destination(); @@ -1024,7 +1024,7 @@ function comment_admin_overview($type = $form['operations'][$comment->cid] = array('#value' => l(t('edit'), 'comment/edit/'. $comment->cid, array(), $destination)); } $form['comments'] = array('#type' => 'checkboxes', '#options' => $comments); - $form['pager'] = array('#value' => theme('pager', NULL, 50, 0)); + $form['pager'] = array('#value' => theme('pager', NULL, variable_get('admin_pager_long', 50), 0)); return drupal_get_form('comment_admin_overview', $form); } Index: modules/node.module =================================================================== RCS file: /cvs/drupal/drupal/modules/node.module,v retrieving revision 1.650 diff -u -p -r1.650 node.module --- modules/node.module 18 May 2006 14:58:57 -0000 1.650 +++ modules/node.module 24 May 2006 16:08:29 -0000 @@ -1132,7 +1132,7 @@ function node_admin_nodes() { $filter = node_build_filter_query(); - $result = pager_query('SELECT n.*, u.name, u.uid FROM {node} n '. $filter['join'] .' INNER JOIN {users} u ON n.uid = u.uid '. $filter['where'] .' ORDER BY n.changed DESC', 50, 0, NULL, $filter['args']); + $result = pager_query('SELECT n.*, u.name, u.uid FROM {node} n '. $filter['join'] .' INNER JOIN {users} u ON n.uid = u.uid '. $filter['where'] .' ORDER BY n.changed DESC', variable_get('admin_pager_long', 50), 0, NULL, $filter['args']); $form['options'] = array('#type' => 'fieldset', '#title' => t('Update options'), @@ -1156,7 +1156,7 @@ function node_admin_nodes() { $form['operations'][$node->nid] = array('#value' => l(t('edit'), 'node/'. $node->nid .'/edit', array(), $destination)); } $form['nodes'] = array('#type' => 'checkboxes', '#options' => $nodes); - $form['pager'] = array('#value' => theme('pager', NULL, 50, 0)); + $form['pager'] = array('#value' => theme('pager', NULL, variable_get('admin_pager_long', 50), 0)); // Call the form first, to allow for the form_values array to be populated. $output .= drupal_get_form('node_admin_nodes', $form); Index: modules/path.module =================================================================== RCS file: /cvs/drupal/drupal/modules/path.module,v retrieving revision 1.84 diff -u -p -r1.84 path.module --- modules/path.module 7 May 2006 00:08:36 -0000 1.84 +++ modules/path.module 24 May 2006 16:08:29 -0000 @@ -295,7 +295,7 @@ function path_overview() { array('data' => t('Operations'), 'colspan' => '2') ); $sql .= tablesort_sql($header); - $result = pager_query($sql, 50); + $result = pager_query($sql, variable_get('admin_pager_long', 50)); $destination = drupal_get_destination(); while ($data = db_fetch_object($result)) { @@ -307,7 +307,7 @@ function path_overview() { } $output = theme('table', $header, $rows); - $output .= theme('pager', NULL, 50, 0); + $output .= theme('pager', NULL, variable_get('admin_pager_long', 50), 0); return $output; } Index: modules/poll.module =================================================================== RCS file: /cvs/drupal/drupal/modules/poll.module,v retrieving revision 1.196 diff -u -p -r1.196 poll.module --- modules/poll.module 7 May 2006 00:08:36 -0000 1.196 +++ modules/poll.module 24 May 2006 16:08:29 -0000 @@ -258,13 +258,13 @@ function poll_page() { // List all polls $sql = "SELECT n.nid, n.title, p.active, n.created, SUM(c.chvotes) AS votes FROM {node} n INNER JOIN {poll} p ON n.nid = p.nid INNER JOIN {poll_choices} c ON n.nid = c.nid WHERE n.status = 1 AND n.moderate = 0 GROUP BY n.nid, n.title, p.active, n.created ORDER BY n.created DESC"; $sql = db_rewrite_sql($sql); - $result = pager_query($sql, 15); + $result = pager_query($sql, variable_get('admin_pager_normal', 30)); $output = ''; - $output .= theme("pager", NULL, 15); + $output .= theme("pager", NULL, variable_get('admin_pager_normal', 30)); return $output; } Index: modules/profile.module =================================================================== RCS file: /cvs/drupal/drupal/modules/profile.module,v retrieving revision 1.156 diff -u -p -r1.156 profile.module --- modules/profile.module 12 May 2006 08:50:22 -0000 1.156 +++ modules/profile.module 24 May 2006 16:08:30 -0000 @@ -456,7 +456,7 @@ function profile_browse() { } // Extract the affected users: - $result = pager_query("SELECT u.uid, u.access FROM {users} u INNER JOIN {profile_values} v ON u.uid = v.uid WHERE v.fid = %d AND $query ORDER BY u.access DESC", 20, 0, NULL, $arguments); + $result = pager_query("SELECT u.uid, u.access FROM {users} u INNER JOIN {profile_values} v ON u.uid = v.uid WHERE v.fid = %d AND $query ORDER BY u.access DESC", variable_get('admin_pager_normal', 30), 0, NULL, $arguments); $output = '
'; while ($account = db_fetch_object($result)) { @@ -464,7 +464,7 @@ function profile_browse() { $profile = _profile_update_user_fields($fields, $account); $output .= theme('profile_listing', $account, $profile); } - $output .= theme('pager', NULL, 20); + $output .= theme('pager', NULL, variable_get('admin_pager_normal', 30)); if ($field->type == 'selection' || $field->type == 'list' || $field->type == 'textfield') { $title = strtr($field->page, array('%value' => theme('placeholder', $value))); @@ -489,7 +489,7 @@ function profile_browse() { } // Extract the affected users: - $result = pager_query("SELECT uid, access FROM {users} WHERE uid > 0 AND status != 0 ORDER BY access DESC", 20, 0, NULL); + $result = pager_query("SELECT uid, access FROM {users} WHERE uid > 0 AND status != 0 ORDER BY access DESC", variable_get('admin_pager_normal', 30), 0, NULL); $output = '
'; while ($account = db_fetch_object($result)) { @@ -498,7 +498,7 @@ function profile_browse() { $output .= theme('profile_listing', $account, $profile); } $output .= '
'; - $output .= theme('pager', NULL, 20); + $output .= theme('pager', NULL, variable_get('admin_pager_normal', 30)); drupal_set_title(t('user list')); return $output; Index: modules/statistics.module =================================================================== RCS file: /cvs/drupal/drupal/modules/statistics.module,v retrieving revision 1.228 diff -u -p -r1.228 statistics.module --- modules/statistics.module 18 May 2006 14:58:57 -0000 1.228 +++ modules/statistics.module 24 May 2006 16:08:30 -0000 @@ -181,7 +181,7 @@ function statistics_node_tracker() { array('data' => t('User'), 'field' => 'u.name'), array('data' => t('Operations'))); - $result = pager_query('SELECT a.aid, a.timestamp, a.url, a.uid, u.name FROM {accesslog} a LEFT JOIN {users} u ON a.uid = u.uid WHERE a.path LIKE \'node/%d%%\'' . tablesort_sql($header), 30, 0, NULL, $node->nid); + $result = pager_query('SELECT a.aid, a.timestamp, a.url, a.uid, u.name FROM {accesslog} a LEFT JOIN {users} u ON a.uid = u.uid WHERE a.path LIKE \'node/%d%%\'' . tablesort_sql($header), variable_get('admin_pager_normal', 30), 0, NULL, $node->nid); while ($log = db_fetch_object($result)) { $rows[] = array( array('data' => format_date($log->timestamp, 'small'), 'class' => 'nowrap'), @@ -192,7 +192,7 @@ function statistics_node_tracker() { drupal_set_title(check_plain($node->title)); $output = theme('table', $header, $rows); - $output .= theme('pager', NULL, 30, 0); + $output .= theme('pager', NULL, variable_get('admin_pager_normal', 30), 0); return $output; } else { @@ -208,7 +208,7 @@ function statistics_user_tracker() { array('data' => t('Page'), 'field' => 'path'), array('data' => t('Operations'))); - $result = pager_query('SELECT aid, timestamp, path, title FROM {accesslog} WHERE uid = %d' . tablesort_sql($header), 30, 0, NULL, $account->uid); + $result = pager_query('SELECT aid, timestamp, path, title FROM {accesslog} WHERE uid = %d' . tablesort_sql($header), variable_get('admin_pager_normal', 30), 0, NULL, $account->uid); while ($log = db_fetch_object($result)) { $rows[] = array( array('data' => format_date($log->timestamp, 'small'), 'class' => 'nowrap'), @@ -218,7 +218,7 @@ function statistics_user_tracker() { drupal_set_title($account->name); $output = theme('table', $header, $rows); - $output .= theme('pager', NULL, 30, 0); + $output .= theme('pager', NULL, variable_get('admin_pager_normal', 30), 0); return $output; } else { @@ -239,7 +239,7 @@ function statistics_recent_hits() { $sql = 'SELECT a.aid, a.path, a.title, a.uid, u.name, a.timestamp FROM {accesslog} a LEFT JOIN {users} u ON u.uid = a.uid' . tablesort_sql($header); - $result = pager_query($sql, 30); + $result = pager_query($sql, variable_get('admin_pager_normal', 30)); while ($log = db_fetch_object($result)) { $rows[] = array( array('data' => format_date($log->timestamp, 'small'), 'class' => 'nowrap'), @@ -249,7 +249,7 @@ function statistics_recent_hits() { } $output = theme('table', $header, $rows); - $output .= theme('pager', NULL, 30, 0); + $output .= theme('pager', NULL, variable_get('admin_pager_normal', 30), 0); return $output; } @@ -267,7 +267,7 @@ function statistics_top_pages() { array('data' => t('Total page generation time'), 'field' => 'total_time') ); $sql .= tablesort_sql($header); - $result = pager_query($sql, 30, 0, $sql_cnt); + $result = pager_query($sql, variable_get('admin_pager_normal', 30), 0, $sql_cnt); while ($page = db_fetch_object($result)) { $rows[] = array($page->hits, _statistics_format_item($page->title, $page->path), t('%time ms', array('%time' => round($page->average_time))), format_interval(round($page->total_time / 1000))); @@ -275,7 +275,7 @@ function statistics_top_pages() { drupal_set_title(t('Top pages in the past %interval', array('%interval' => format_interval(variable_get('statistics_flush_accesslog_timer', 259200))))); $output = theme('table', $header, $rows); - $output .= theme('pager', NULL, 30, 0); + $output .= theme('pager', NULL, variable_get('admin_pager_normal', 30), 0); return $output; } @@ -293,7 +293,7 @@ function statistics_top_visitors() { $sql = "SELECT COUNT(a.uid) AS hits, a.uid, u.name, a.hostname, SUM(a.timer) AS total, ac.aid FROM {accesslog} a LEFT JOIN {access} ac ON ac.type = 'host' AND LOWER(a.hostname) LIKE (ac.mask) LEFT JOIN {users} u ON a.uid = u.uid GROUP BY a.hostname, a.uid, u.name, ac.aid". tablesort_sql($header); $sql_cnt = "SELECT COUNT(DISTINCT(uid)) FROM {accesslog}"; - $result = pager_query($sql, 30, 0, $sql_cnt); + $result = pager_query($sql, variable_get('admin_pager_normal', 30), 0, $sql_cnt); while ($account = db_fetch_object($result)) { $qs = drupal_get_destination(); @@ -303,7 +303,7 @@ function statistics_top_visitors() { drupal_set_title(t('Top visitors in the past %interval', array('%interval' => format_interval(variable_get('statistics_flush_accesslog_timer', 259200))))); $output = theme('table', $header, $rows); - $output .= theme('pager', NULL, 30, 0); + $output .= theme('pager', NULL, variable_get('admin_pager_normal', 30), 0); return $output; } @@ -322,14 +322,14 @@ function statistics_top_referrers() { ); $query .= tablesort_sql($header); - $result = pager_query($query, 30, 0, $query_cnt, $_SERVER['HTTP_HOST']); + $result = pager_query($query, variable_get('admin_pager_normal', 30), 0, $query_cnt, $_SERVER['HTTP_HOST']); while ($referrer = db_fetch_object($result)) { $rows[] = array($referrer->hits, _statistics_link($referrer->url), t('%time ago', array('%time' => format_interval(time() - $referrer->last)))); } $output = theme('table', $header, $rows); - $output .= theme('pager', NULL, 30, 0); + $output .= theme('pager', NULL, variable_get('admin_pager_normal', 30), 0); return $output; } Index: modules/taxonomy.module =================================================================== RCS file: /cvs/drupal/drupal/modules/taxonomy.module,v retrieving revision 1.286 diff -u -p -r1.286 taxonomy.module --- modules/taxonomy.module 24 May 2006 04:54:52 -0000 1.286 +++ modules/taxonomy.module 24 May 2006 16:08:31 -0000 @@ -160,7 +160,7 @@ function taxonomy_overview_terms($vid) { drupal_set_title(check_plain($vocabulary->name)); $start_from = $_GET['page'] ? $_GET['page'] : 0; $total_entries = 0; // total count for pager - $page_increment = 25; // number of tids per page + $page_increment = variable_get('admin_pager_normal', 30); // number of tids per page $displayed_count = 0; // number of tids shown $tree = taxonomy_get_tree($vocabulary->vid); Index: modules/tracker.module =================================================================== RCS file: /cvs/drupal/drupal/modules/tracker.module,v retrieving revision 1.130 diff -u -p -r1.130 tracker.module --- modules/tracker.module 7 May 2006 00:08:36 -0000 1.130 +++ modules/tracker.module 24 May 2006 16:08:31 -0000 @@ -87,14 +87,14 @@ function tracker_page($uid = 0) { $sql = db_rewrite_sql($sql); $sql_count = 'SELECT COUNT(DISTINCT(n.nid)) FROM {node} n LEFT JOIN {comments} c ON n.nid = c.nid AND (c.status = %d OR c.status IS NULL) WHERE n.status = 1 AND (n.uid = %d OR c.uid = %d)'; $sql_count = db_rewrite_sql($sql_count); - $result = pager_query($sql, 25, 0, $sql_count, COMMENT_PUBLISHED, $uid, $uid); + $result = pager_query($sql, variable_get('admin_pager_normal', 30), 0, $sql_count, COMMENT_PUBLISHED, $uid, $uid); } else { $sql = 'SELECT DISTINCT(n.nid), n.title, n.type, n.changed, n.uid, u.name, l.last_comment_timestamp AS last_post, l.comment_count FROM {node} n INNER JOIN {users} u ON n.uid = u.uid INNER JOIN {node_comment_statistics} l ON n.nid = l.nid WHERE n.status = 1 ORDER BY last_post DESC'; $sql = db_rewrite_sql($sql); $sql_count = 'SELECT COUNT(n.nid) FROM {node} n WHERE n.status = 1'; $sql_count = db_rewrite_sql($sql_count); - $result = pager_query($sql, 25, 0, $sql_count); + $result = pager_query($sql, variable_get('admin_pager_normal', 30), 0, $sql_count); } while ($node = db_fetch_object($result)) { Index: modules/user.module =================================================================== RCS file: /cvs/drupal/drupal/modules/user.module,v retrieving revision 1.625 diff -u -p -r1.625 user.module --- modules/user.module 24 May 2006 05:51:10 -0000 1.625 +++ modules/user.module 24 May 2006 16:08:32 -0000 @@ -1920,7 +1920,7 @@ function user_admin_account() { ); $sql = 'SELECT u.uid, u.name, u.status, u.created, u.access FROM {users} u WHERE uid != 0'; $sql .= tablesort_sql($header); - $result = pager_query($sql, 50); + $result = pager_query($sql, variable_get('admin_pager_long', 50)); $status = array(t('blocked'), t('active')); while ($account = db_fetch_object($result)) { @@ -1932,7 +1932,7 @@ function user_admin_account() { } $output = theme('table', $header, $rows); - $output .= theme('pager', NULL, 50, 0); + $output .= theme('pager', NULL, variable_get('admin_pager_long', 50), 0); return $output; } Index: modules/watchdog.module =================================================================== RCS file: /cvs/drupal/drupal/modules/watchdog.module,v retrieving revision 1.144 diff -u -p -r1.144 watchdog.module --- modules/watchdog.module 7 May 2006 00:08:36 -0000 1.144 +++ modules/watchdog.module 24 May 2006 16:08:32 -0000 @@ -112,10 +112,10 @@ function watchdog_overview() { $tablesort = tablesort_sql($header); $type = $_SESSION['watchdog_overview_filter']; if ($type != 'all') { - $result = pager_query($sql ." WHERE w.type = '%s'". $tablesort, 50, 0, NULL, $type); + $result = pager_query($sql ." WHERE w.type = '%s'". $tablesort, variable_get('admin_pager_long', 50), 0, NULL, $type); } else { - $result = pager_query($sql . $tablesort, 50); + $result = pager_query($sql . $tablesort, variable_get('admin_pager_long', 50)); } while ($watchdog = db_fetch_object($result)) {