|
@@ 78-80 (lines=3) @@
|
| 75 |
|
$section->setSortingField($sort, false); |
| 76 |
|
$section->setSortingOrder($order); |
| 77 |
|
|
| 78 |
|
if ($params['filters']) { |
| 79 |
|
$params['filters'] = '?' . trim($params['filters'], '&'); |
| 80 |
|
} |
| 81 |
|
|
| 82 |
|
redirect(Administration::instance()->getCurrentPageURL() . $params['filters']); |
| 83 |
|
} |
|
@@ 87-89 (lines=3) @@
|
| 84 |
|
|
| 85 |
|
// If the sort order or direction remains the same, reload the page |
| 86 |
|
if ($sort === $section->getSortingField() && $order === $section->getSortingOrder()) { |
| 87 |
|
if ($params['filters']) { |
| 88 |
|
$params['filters'] = '?' . trim($params['filters'], '&'); |
| 89 |
|
} |
| 90 |
|
|
| 91 |
|
redirect(Administration::instance()->getCurrentPageURL() . $params['filters']); |
| 92 |
|
} |