Ratioed: allow both sorting directions

This commit is contained in:
Matthew Exon 2025-01-11 19:36:38 +01:00 committed by Tobias Diekershoff
parent 2ef9cb8add
commit d495810b2d

View file

@ -70,10 +70,10 @@ class RatioedPanel extends Active
$order = 'last-item';
$order_direction = '-';
if (!empty($request['o'])) {
$new_order = $request['o'];
if ($new_order[0] === '-') {
$order_direction = '-';
if (!empty($_REQUEST['o'])) {
$new_order = $_REQUEST['o'];
if ($new_order[0] === '+') {
$order_direction = '+';
$new_order = substr($new_order, 1);
}