From: Matthew Exon Date: Sat, 11 Jan 2025 18:36:38 +0000 (+0100) Subject: Ratioed: allow both sorting directions X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=d495810b2daf9e278cf317df9a12702b136d131c;p=friendica-addons.git Ratioed: allow both sorting directions --- diff --git a/ratioed/RatioedPanel.php b/ratioed/RatioedPanel.php index dac71752..08d94167 100644 --- a/ratioed/RatioedPanel.php +++ b/ratioed/RatioedPanel.php @@ -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); }