Commit 025bca28 authored by Steven Wittens's avatar Steven Wittens

- Forgot about tablesort dependency on pager.

parent 8bfe10bb
...@@ -140,7 +140,7 @@ function drupal_get_headers() { ...@@ -140,7 +140,7 @@ function drupal_get_headers() {
*/ */
function drupal_get_destination() { function drupal_get_destination() {
$destination[] = $_GET['q']; $destination[] = $_GET['q'];
$params = array('from', 'sort', 'order'); $params = array('page', 'sort', 'order');
foreach ($params as $param) { foreach ($params as $param) {
if (isset($_GET[$param])) { if (isset($_GET[$param])) {
$destination[] = "$param=". $_GET[$param]; $destination[] = "$param=". $_GET[$param];
......
...@@ -27,7 +27,7 @@ function tablesort_init($header) { ...@@ -27,7 +27,7 @@ function tablesort_init($header) {
*/ */
function tablesort_pager() { function tablesort_pager() {
$cgi = $_SERVER['REQUEST_METHOD'] == 'GET' ? $_GET : $_POST; $cgi = $_SERVER['REQUEST_METHOD'] == 'GET' ? $_GET : $_POST;
unset($cgi['q'], $cgi['from']); unset($cgi['q'], $cgi['page']);
return $cgi; return $cgi;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment