Index: modules/dblog/dblog.admin.inc =================================================================== RCS file: /cvs/drupal/drupal/modules/dblog/dblog.admin.inc,v retrieving revision 1.14 diff -u -r1.14 dblog.admin.inc --- modules/dblog/dblog.admin.inc 13 Mar 2009 14:28:18 -0000 1.14 +++ modules/dblog/dblog.admin.inc 6 Apr 2009 16:56:35 -0000 @@ -73,7 +73,7 @@ $query ->where($filter['where'], $filter['args']) ->extend('PagerDefault')->extend('TableSort') - ->limit(50, 0) + ->limit(variable_get('pager_limit_dblog_items', PAGER_LIMIT_LONG), 0) ->setHeader($header); $result = $query->execute(); } @@ -81,7 +81,7 @@ //setHeader may not be chainable see Line 138 $query ->extend('PagerDefault')->extend('TableSort') - ->limit(50) + ->limit(variable_get('pager_limit_dblog_items', PAGER_LIMIT_LONG)) ->setHeader($header); $result = $query->execute(); } @@ -107,7 +107,7 @@ } $output .= theme('table', $header, $rows, array('id' => 'admin-dblog')); - $output .= theme('pager', NULL, 50, 0); + $output .= theme('pager', NULL, variable_get('pager_limit_dblog_items', PAGER_LIMIT_LONG), 0); return $output; } @@ -134,7 +134,7 @@ ->groupBy('message') ->groupBy('variables') ->extend('PagerDefault')->extend('TableSort') - ->limit(30); + ->limit(variable_get('pager_limit_dblog_top_items', PAGER_LIMIT_DEFAULT)); $query = $query->setHeader($header); $query->setCountQuery($count_query); $result = $query->execute(); @@ -149,7 +149,7 @@ } $output = theme('table', $header, $rows); - $output .= theme('pager', NULL, 30, 0); + $output .= theme('pager', NULL, variable_get('pager_limit_dblog_top_items', PAGER_LIMIT_DEFAULT), 0); return $output; } Index: modules/statistics/statistics.admin.inc =================================================================== RCS file: /cvs/drupal/drupal/modules/statistics/statistics.admin.inc,v retrieving revision 1.20 diff -u -r1.20 statistics.admin.inc --- modules/statistics/statistics.admin.inc 1 Apr 2009 20:00:47 -0000 1.20 +++ modules/statistics/statistics.admin.inc 6 Apr 2009 16:56:39 -0000 @@ -19,7 +19,7 @@ $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('pager_limit_statistics_recent', PAGER_LIMIT_DEFAULT)); $rows = array(); while ($log = db_fetch_object($result)) { $rows[] = array( @@ -34,7 +34,7 @@ } $output = theme('table', $header, $rows); - $output .= theme('pager', NULL, 30, 0); + $output .= theme('pager', NULL, variable_get('pager_limit_statistics_recent', PAGER_LIMIT_DEFAULT), 0); return $output; } @@ -53,7 +53,7 @@ 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('pager_limit_statistics_top_pages', PAGER_LIMIT_DEFAULT), 0, $sql_cnt); $rows = array(); while ($page = db_fetch_object($result)) { @@ -66,7 +66,7 @@ drupal_set_title(t('Top pages in the past %interval', array('%interval' => format_interval(variable_get('statistics_flush_accesslog_timer', 259200)))), PASS_THROUGH); $output = theme('table', $header, $rows); - $output .= theme('pager', NULL, 30, 0); + $output .= theme('pager', NULL, variable_get('pager_limit_statistics_top_pages', PAGER_LIMIT_DEFAULT), 0); return $output; } @@ -84,7 +84,7 @@ $sql = "SELECT COUNT(a.uid) AS hits, a.uid, u.name, a.hostname, SUM(a.timer) AS total, bl.iid FROM {accesslog} a LEFT JOIN {blocked_ips} bl ON a.hostname = bl.ip LEFT JOIN {users} u ON a.uid = u.uid GROUP BY a.hostname, a.uid, u.name, bl.iid" . tablesort_sql($header); $sql_cnt = "SELECT COUNT(DISTINCT(CONCAT(CAST(uid AS char), hostname))) FROM {accesslog}"; - $result = pager_query($sql, 30, 0, $sql_cnt); + $result = pager_query($sql, variable_get('pager_limit_statistics_top_visitors', PAGER_LIMIT_DEFAULT), 0, $sql_cnt); $rows = array(); while ($account = db_fetch_object($result)) { @@ -99,7 +99,7 @@ drupal_set_title(t('Top visitors in the past %interval', array('%interval' => format_interval(variable_get('statistics_flush_accesslog_timer', 259200)))), PASS_THROUGH); $output = theme('table', $header, $rows); - $output .= theme('pager', NULL, 30, 0); + $output .= theme('pager', NULL, variable_get('pager_limit_statistics_top_visitors', PAGER_LIMIT_DEFAULT), 0); return $output; } @@ -118,7 +118,7 @@ ); $query .= tablesort_sql($header); - $result = pager_query($query, 30, 0, $query_cnt, array(':host' => '%'. $_SERVER['HTTP_HOST'] .'%')); + $result = pager_query($query, variable_get('pager_limit_statistics_top_referrers', PAGER_LIMIT_DEFAULT), 0, $query_cnt, array(':host' => '%'. $_SERVER['HTTP_HOST'] .'%')); $rows = array(); while ($referrer = db_fetch_object($result)) { @@ -130,7 +130,7 @@ } $output = theme('table', $header, $rows); - $output .= theme('pager', NULL, 30, 0); + $output .= theme('pager', NULL, variable_get('pager_limit_statistics_top_referrers', PAGER_LIMIT_DEFAULT), 0); return $output; } Index: modules/statistics/statistics.pages.inc =================================================================== RCS file: /cvs/drupal/drupal/modules/statistics/statistics.pages.inc,v retrieving revision 1.9 diff -u -r1.9 statistics.pages.inc --- modules/statistics/statistics.pages.inc 14 Mar 2009 23:01:37 -0000 1.9 +++ modules/statistics/statistics.pages.inc 6 Apr 2009 16:56:39 -0000 @@ -15,7 +15,7 @@ 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('pager_limit_statistics_node_tracker', PAGER_LIMIT_DEFAULT), 0, NULL, $node->nid); $rows = array(); while ($log = db_fetch_object($result)) { $rows[] = array( @@ -31,7 +31,7 @@ drupal_set_title($node->title); $output = theme('table', $header, $rows); - $output .= theme('pager', NULL, 30, 0); + $output .= theme('pager', NULL, variable_get('pager_limit_statistics_node_tracker', PAGER_LIMIT_DEFAULT), 0); return $output; } else { @@ -47,7 +47,7 @@ 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('pager_limit_statistics_user_tracker', PAGER_LIMIT_DEFAULT), 0, NULL, $account->uid); $rows = array(); while ($log = db_fetch_object($result)) { $rows[] = array( @@ -62,7 +62,7 @@ drupal_set_title($account->name); $output = theme('table', $header, $rows); - $output .= theme('pager', NULL, 30, 0); + $output .= theme('pager', NULL, variable_get('pager_limit_statistics_user_tracker', PAGER_LIMIT_DEFAULT), 0); return $output; } else { Index: modules/user/user.admin.inc =================================================================== RCS file: /cvs/drupal/drupal/modules/user/user.admin.inc,v retrieving revision 1.40 diff -u -r1.40 user.admin.inc --- modules/user/user.admin.inc 26 Feb 2009 07:30:28 -0000 1.40 +++ modules/user/user.admin.inc 6 Apr 2009 16:56:44 -0000 @@ -147,7 +147,7 @@ $sql = 'SELECT DISTINCT u.uid, u.name, u.status, u.created, u.access FROM {users} u LEFT JOIN {users_roles} ur ON u.uid = ur.uid ' . $filter['join'] . ' WHERE u.uid != 0 ' . $filter['where']; $sql .= tablesort_sql($header); $query_count = 'SELECT COUNT(DISTINCT u.uid) FROM {users} u LEFT JOIN {users_roles} ur ON u.uid = ur.uid ' . $filter['join'] . ' WHERE u.uid != 0 ' . $filter['where']; - $result = pager_query($sql, 50, 0, $query_count, $filter['args']); + $result = pager_query($sql, variable_get('pager_limit_user_users', PAGER_LIMIT_LONG), 0, $query_count, $filter['args']); $form['options'] = array( '#type' => 'fieldset', @@ -193,7 +193,7 @@ '#type' => 'checkboxes', '#options' => $accounts ); - $form['pager'] = array('#markup' => theme('pager', NULL, 50, 0)); + $form['pager'] = array('#markup' => theme('pager', NULL, variable_get('pager_limit_user_users', PAGER_LIMIT_LONG), 0)); return $form; } Index: modules/user/user.module =================================================================== RCS file: /cvs/drupal/drupal/modules/user/user.module,v retrieving revision 1.973 diff -u -r1.973 user.module --- modules/user/user.module 1 Apr 2009 20:00:47 -0000 1.973 +++ modules/user/user.module 6 Apr 2009 16:56:48 -0000 @@ -831,8 +831,12 @@ /** * Implementation of hook_search(). + * + * @param $limit + * (optional) Limit the result list to a certain number of items. + * Default: value of variable 'pager_limit_user_search_results'. */ -function user_search($op = 'search', $keys = NULL, $skip_access_check = FALSE) { +function user_search($op = 'search', $keys = NULL, $skip_access_check = FALSE, $limit = FALSE) { switch ($op) { case 'name': if ($skip_access_check || user_access('access user profiles')) { @@ -843,15 +847,19 @@ $find = array(); // Replace wildcards with MySQL/PostgreSQL wildcards. $keys = preg_replace('!\*+!', '%', $keys); + // Limit the result list. + if (!$limit) { + $limit = variable_get('pager_limit_user_search_results', PAGER_LIMIT_SHORT); + } if (user_access('administer users')) { // Administrators can also search in the otherwise private email field. - $result = pager_query("SELECT name, uid, mail FROM {users} WHERE LOWER(name) LIKE LOWER('%%%s%%') OR LOWER(mail) LIKE LOWER('%%%s%%')", 15, 0, NULL, $keys, $keys); + $result = pager_query("SELECT name, uid, mail FROM {users} WHERE LOWER(name) LIKE LOWER('%%%s%%') OR LOWER(mail) LIKE LOWER('%%%s%%')", $limit, 0, NULL, $keys, $keys); while ($account = db_fetch_object($result)) { $find[] = array('title' => $account->name . ' (' . $account->mail . ')', 'link' => url('user/' . $account->uid, array('absolute' => TRUE))); } } else { - $result = pager_query("SELECT name, uid FROM {users} WHERE LOWER(name) LIKE LOWER('%%%s%%')", 15, 0, NULL, $keys); + $result = pager_query("SELECT name, uid FROM {users} WHERE LOWER(name) LIKE LOWER('%%%s%%')", $limit, 0, NULL, $keys); while ($account = db_fetch_object($result)) { $find[] = array('title' => $account->name, 'link' => url('user/' . $account->uid, array('absolute' => TRUE))); } Index: includes/locale.inc =================================================================== RCS file: /cvs/drupal/drupal/includes/locale.inc,v retrieving revision 1.210 diff -u -r1.210 locale.inc --- includes/locale.inc 2 Apr 2009 20:39:44 -0000 1.210 +++ includes/locale.inc 6 Apr 2009 16:56:33 -0000 @@ -2186,8 +2186,12 @@ /** * Perform a string search and display results in a table + * + * @param $limit + * (optional) Limit the result list to a certain number of items. + * Default: value of variable 'pager_limit_locale_search_results'. */ -function _locale_translate_seek() { +function _locale_translate_seek($limit = FALSE) { $output = ''; // We have at least one criterion to match @@ -2241,7 +2245,10 @@ $sql_query->condition('s.textgroup', $query['group']); } - $sql_query = $sql_query->extend('PagerDefault')->limit(50); + if (!$limit) { + $limit = variable_get('pager_limit_locale_search_results', PAGER_LIMIT_LONG); + } + $sql_query = $sql_query->extend('PagerDefault')->limit($limit); $locales = $sql_query->execute(); $groups = module_invoke_all('locale', 'groups'); @@ -2275,7 +2282,7 @@ if (count($rows)) { $output .= theme('table', $header, $rows); - if ($pager = theme('pager', NULL, 50)) { + if ($pager = theme('pager', NULL, $limit)) { $output .= $pager; } } Index: includes/common.inc =================================================================== RCS file: /cvs/drupal/drupal/includes/common.inc,v retrieving revision 1.874 diff -u -r1.874 common.inc --- includes/common.inc 30 Mar 2009 05:13:45 -0000 1.874 +++ includes/common.inc 6 Apr 2009 16:56:29 -0000 @@ -41,6 +41,21 @@ define('JS_THEME', 100); /** + * The number of items displayed by a pager (short page). + */ +define('PAGER_LIMIT_SHORT', 20); + +/** + * The number of items displayed by a pager (default page). + */ +define('PAGER_LIMIT_DEFAULT', 30); + +/** + * The number of items displayed by a pager (long page). + */ +define('PAGER_LIMIT_LONG', 50); + +/** * Set content for a specified region. * * @param $region Index: modules/node/node.admin.inc =================================================================== RCS file: /cvs/drupal/drupal/modules/node/node.admin.inc,v retrieving revision 1.43 diff -u -r1.43 node.admin.inc --- modules/node/node.admin.inc 20 Mar 2009 08:14:34 -0000 1.43 +++ modules/node/node.admin.inc 6 Apr 2009 16:56:36 -0000 @@ -481,7 +481,7 @@ $filter = node_build_filter_query(); $sort = tablesort_sql($header, '', 'n.changed DESC'); - $result = pager_query(db_rewrite_sql('SELECT n.*, u.name FROM {node} n '. $filter['join'] .' INNER JOIN {users} u ON n.uid = u.uid '. $filter['where'] . $sort), 50, 0, NULL, $filter['args']); + $result = pager_query(db_rewrite_sql('SELECT n.*, u.name FROM {node} n '. $filter['join'] .' INNER JOIN {users} u ON n.uid = u.uid '. $filter['where'] . $sort), variable_get('pager_limit_node_admin', PAGER_LIMIT_LONG), 0, NULL, $filter['args']); // Build the 'Update options' form. $form['options'] = array( @@ -525,7 +525,7 @@ '#type' => 'checkboxes', '#options' => $nodes, ); - $form['pager'] = array('#markup' => theme('pager', NULL, 50, 0)); + $form['pager'] = array('#markup' => theme('pager', NULL, variable_get('pager_limit_node_admin', PAGER_LIMIT_LONG), 0)); $form['#theme'] = 'node_admin_nodes'; return $form; } Index: modules/search/search.pages.inc =================================================================== RCS file: /cvs/drupal/drupal/modules/search/search.pages.inc,v retrieving revision 1.5 diff -u -r1.5 search.pages.inc --- modules/search/search.pages.inc 14 Apr 2008 17:48:41 -0000 1.5 +++ modules/search/search.pages.inc 6 Apr 2009 16:56:39 -0000 @@ -63,7 +63,7 @@ foreach ($variables['results'] as $result) { $variables['search_results'] .= theme('search_result', $result, $variables['type']); } - $variables['pager'] = theme('pager', NULL, 10, 0); + $variables['pager'] = theme('pager', NULL, variable_get('pager_limit_search_results', PAGER_LIMIT_SHORT), 0); // Provide alternate search results template. $variables['template_files'][] = 'search-results-' . $variables['type']; } Index: modules/search/search.module =================================================================== RCS file: /cvs/drupal/drupal/modules/search/search.module,v retrieving revision 1.287 diff -u -r1.287 search.module --- modules/search/search.module 27 Mar 2009 00:16:16 -0000 1.287 +++ modules/search/search.module 6 Apr 2009 16:56:38 -0000 @@ -945,12 +945,16 @@ * (optional) SQL arguments for sorting the final results. * Default: 'ORDER BY calculated_score DESC' * + * @param $limit + * (optional) Limit the result list to a certain number of items. + * Default: value of variable 'pager_limit_search_results'. + * * @return * An array of SIDs for the search results. * * @ingroup search */ -function do_search($keywords, $type, $join1 = '', $where1 = '1 = 1', $arguments1 = array(), $columns2 = 'SUM(i.relevance) AS calculated_score', $join2 = '', $arguments2 = array(), $sort_parameters = 'ORDER BY calculated_score DESC') { +function do_search($keywords, $type, $join1 = '', $where1 = '1 = 1', $arguments1 = array(), $columns2 = 'SUM(i.relevance) AS calculated_score', $join2 = '', $arguments2 = array(), $sort_parameters = 'ORDER BY calculated_score DESC', $limit = FALSE) { $query = search_parse_query($keywords); if ($query[2] == '') { @@ -989,8 +993,11 @@ $count_select = "SELECT COUNT(*) FROM ($select) n1"; $arguments = array_values(array_merge($arguments2, $arguments1, array($query[4]))); + if (!$limit) { + $limit = variable_get('pager_limit_search_results', PAGER_LIMIT_SHORT); + } // Do actual search query - $result = pager_query("$select $sort_parameters", 10, 0, $count_select, $arguments); + $result = pager_query("$select $sort_parameters", $limit, 0, $count_select, $arguments); $results = array(); while ($item = db_fetch_object($result)) { $results[] = $item; Index: modules/tracker/tracker.pages.inc =================================================================== RCS file: /cvs/drupal/drupal/modules/tracker/tracker.pages.inc,v retrieving revision 1.17 diff -u -r1.17 tracker.pages.inc --- modules/tracker/tracker.pages.inc 5 Apr 2009 12:26:12 -0000 1.17 +++ modules/tracker/tracker.pages.inc 6 Apr 2009 16:56:43 -0000 @@ -49,7 +49,7 @@ $query->condition('n.status', 1); $query->distinct(); $query->extend('PagerDefault')->extend('TableSort') - ->limit(25, 0) + ->limit(variable_get('pager_limit_tracker', PAGER_LIMIT_DEFAULT), 0) ->setHeader($header); $result = $query->execute(); @@ -82,7 +82,7 @@ $output = '
'; $output .= theme('table', $header, $rows); - $output .= theme('pager', NULL, 25, 0); + $output .= theme('pager', NULL, variable_get('pager_limit_tracker', PAGER_LIMIT_DEFAULT), 0); $output .= '
'; return $output; Index: modules/profile/profile.pages.inc =================================================================== RCS file: /cvs/drupal/drupal/modules/profile/profile.pages.inc,v retrieving revision 1.13 diff -u -r1.13 profile.pages.inc --- modules/profile/profile.pages.inc 14 Mar 2009 23:01:37 -0000 1.13 +++ modules/profile/profile.pages.inc 6 Apr 2009 16:56:37 -0000 @@ -55,7 +55,7 @@ } // Extract the affected users: - $result = pager_query("SELECT u.uid, u.access FROM {users} u INNER JOIN {profile_value} v ON u.uid = v.uid WHERE v.fid = %d AND $query AND u.access != 0 AND u.status != 0 ORDER BY u.access DESC", 20, 0, NULL, $arguments)->fetchAllAssoc('uid'); + $result = pager_query("SELECT u.uid, u.access FROM {users} u INNER JOIN {profile_value} v ON u.uid = v.uid WHERE v.fid = %d AND $query AND u.access != 0 AND u.status != 0 ORDER BY u.access DESC", variable_get('pager_limit_profile_users', PAGER_LIMIT_SHORT), 0, NULL, $arguments)->fetchAllAssoc('uid'); // Load the users. $users = user_load_multiple(array_keys($result)); @@ -66,7 +66,7 @@ $content .= theme('profile_listing', $account, $profile); } $output = theme('profile_wrapper', $content); - $output .= theme('pager', NULL, 20); + $output .= theme('pager', NULL, variable_get('pager_limit_profile_users', PAGER_LIMIT_SHORT)); if ($field->type == 'selection' || $field->type == 'list' || $field->type == 'textfield') { $title = strtr(check_plain($field->page), array('%value' => theme('placeholder', $value))); @@ -90,7 +90,7 @@ } // Extract the affected users: - $result = pager_query('SELECT uid, access FROM {users} WHERE uid > 0 AND status != 0 AND access != 0 ORDER BY access DESC', 20, 0, NULL)->fetchAllAssoc('uid'); + $result = pager_query('SELECT uid, access FROM {users} WHERE uid > 0 AND status != 0 AND access != 0 ORDER BY access DESC', variable_get('pager_limit_profile_users', PAGER_LIMIT_SHORT), 0, NULL)->fetchAllAssoc('uid'); $users = user_load_multiple(array_keys($result)); $content = ''; foreach ($users as $account) { @@ -98,7 +98,7 @@ $content .= theme('profile_listing', $account, $profile); } $output = theme('profile_wrapper', $content); - $output .= theme('pager', NULL, 20); + $output .= theme('pager', NULL, variable_get('pager_limit_profile_users', PAGER_LIMIT_SHORT)); drupal_set_title(t('User list'), PASS_THROUGH); return $output; Index: modules/comment/comment.admin.inc =================================================================== RCS file: /cvs/drupal/drupal/modules/comment/comment.admin.inc,v retrieving revision 1.17 diff -u -r1.17 comment.admin.inc --- modules/comment/comment.admin.inc 14 Mar 2009 20:13:26 -0000 1.17 +++ modules/comment/comment.admin.inc 6 Apr 2009 16:56:35 -0000 @@ -76,7 +76,7 @@ ->fields('u', array('uid')) ->condition('c.status', $status) ->extend('PagerDefault')->extend('TableSort') - ->limit(50) + ->limit(variable_get('pager_limit_comment_admin', PAGER_LIMIT_LONG)) ->setHeader($header); $result = $query->execute(); @@ -103,7 +103,7 @@ ); $form['pager'] = array( - '#markup' => theme('pager', NULL, 50, 0) + '#markup' => theme('pager', NULL, variable_get('pager_limit_comment_admin', PAGER_LIMIT_LONG), 0) ); return $form; Index: modules/aggregator/aggregator.pages.inc =================================================================== RCS file: /cvs/drupal/drupal/modules/aggregator/aggregator.pages.inc,v retrieving revision 1.24 diff -u -r1.24 aggregator.pages.inc --- modules/aggregator/aggregator.pages.inc 3 Feb 2009 18:55:29 -0000 1.24 +++ modules/aggregator/aggregator.pages.inc 6 Apr 2009 16:56:34 -0000 @@ -261,7 +261,7 @@ * @see aggregator-wrapper.tpl.php */ function template_preprocess_aggregator_wrapper(&$variables) { - $variables['pager'] = theme('pager', NULL, 20, 0); + $variables['pager'] = theme('pager', NULL, variable_get('pager_limit_aggregator_items', PAGER_LIMIT_SHORT), 0); } /** Index: modules/path/path.admin.inc =================================================================== RCS file: /cvs/drupal/drupal/modules/path/path.admin.inc,v retrieving revision 1.17 diff -u -r1.17 path.admin.inc --- modules/path/path.admin.inc 13 Jan 2009 19:27:21 -0000 1.17 +++ modules/path/path.admin.inc 6 Apr 2009 16:56:36 -0000 @@ -37,7 +37,7 @@ array_splice($header, 2, 0, array(array('data' => t('Language'), 'field' => 'language'))); } $sql .= tablesort_sql($header); - $result = pager_query($sql, 50, 0 , NULL, $args); + $result = pager_query($sql, variable_get('pager_limit_path_admin', PAGER_LIMIT_LONG), 0 , NULL, $args); $rows = array(); $destination = drupal_get_destination(); @@ -65,7 +65,7 @@ } $output .= theme('table', $header, $rows); - $output .= theme('pager', NULL, 50, 0); + $output .= theme('pager', NULL, variable_get('pager_limit_path_admin', PAGER_LIMIT_LONG), 0); return $output; } Index: modules/system/system.module =================================================================== RCS file: /cvs/drupal/drupal/modules/system/system.module,v retrieving revision 1.676 diff -u -r1.676 system.module --- modules/system/system.module 25 Mar 2009 18:40:50 -0000 1.676 +++ modules/system/system.module 6 Apr 2009 16:56:43 -0000 @@ -1688,7 +1688,7 @@ array('data' => $instances_present ? t('Operations') : '', 'colspan' => '2') ); $sql = 'SELECT * FROM {actions}'; - $result = pager_query($sql . tablesort_sql($header), 50); + $result = pager_query($sql . tablesort_sql($header), variable_get('pager_limit_system_action', PAGER_LIMIT_LONG)); while ($action = db_fetch_object($result)) { $row[] = array( array('data' => $action->type), @@ -1699,7 +1699,7 @@ } if ($row) { - $pager = theme('pager', NULL, 50, 0); + $pager = theme('pager', NULL, variable_get('pager_limit_system_action', PAGER_LIMIT_LONG), 0); if (!empty($pager)) { $row[] = array(array('data' => $pager, 'colspan' => '3')); }