]> git.mxchange.org Git - friendica-addons.git/commitdiff
Ratioed: allow both sorting directions
authorMatthew Exon <git.mexon@spamgourmet.com>
Sat, 11 Jan 2025 18:36:38 +0000 (19:36 +0100)
committerTobias Diekershoff <tobias@noreply.git.friendi.ca>
Sun, 12 Jan 2025 11:03:00 +0000 (12:03 +0100)
ratioed/RatioedPanel.php

index dac71752ab67236b6762ec77b04ffbce0c0571c8..08d94167ec657949c961437804c31e2f51534e35 100644 (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);
                        }