mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2025-02-02 02:19:53 +00:00
Ratioed: allow both sorting directions
This commit is contained in:
parent
2ef9cb8add
commit
d495810b2d
1 changed files with 4 additions and 4 deletions
|
@ -70,10 +70,10 @@ class RatioedPanel extends Active
|
||||||
|
|
||||||
$order = 'last-item';
|
$order = 'last-item';
|
||||||
$order_direction = '-';
|
$order_direction = '-';
|
||||||
if (!empty($request['o'])) {
|
if (!empty($_REQUEST['o'])) {
|
||||||
$new_order = $request['o'];
|
$new_order = $_REQUEST['o'];
|
||||||
if ($new_order[0] === '-') {
|
if ($new_order[0] === '+') {
|
||||||
$order_direction = '-';
|
$order_direction = '+';
|
||||||
$new_order = substr($new_order, 1);
|
$new_order = substr($new_order, 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue