mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2025-01-22 04:39:46 +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_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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue