mirror of
https://github.com/friendica/friendica
synced 2024-12-22 16:48:03 +01:00
Opps, cutted this out by accident ...
Signed-off-by: Roland Haeder <roland@mxchange.org>
This commit is contained in:
parent
7514a3beb8
commit
8e42e797cc
1 changed files with 7 additions and 3 deletions
|
@ -1243,12 +1243,16 @@ function photos_content(App $a)
|
||||||
$prevlink = '';
|
$prevlink = '';
|
||||||
$nextlink = '';
|
$nextlink = '';
|
||||||
|
|
||||||
/// @todo This query is totally bad, the whole functionality has to be changed
|
/*
|
||||||
// The query leads to a really intense used index.
|
* @todo This query is totally bad, the whole functionality has to be changed
|
||||||
// By now we hide it if someone wants to.
|
* The query leads to a really intense used index.
|
||||||
|
* By now we hide it if someone wants to.
|
||||||
|
*/
|
||||||
if (!Config::get('system', 'no_count', false)) {
|
if (!Config::get('system', 'no_count', false)) {
|
||||||
$order_field = defaults($_GET, 'order', '');
|
$order_field = defaults($_GET, 'order', '');
|
||||||
if ($order_field === 'posted') {
|
if ($order_field === 'posted') {
|
||||||
|
if (!Config::get('system', 'no_count', false)) {
|
||||||
|
if ($_GET['order'] === 'posted') {
|
||||||
$order = 'ASC';
|
$order = 'ASC';
|
||||||
} else {
|
} else {
|
||||||
$order = 'DESC';
|
$order = 'DESC';
|
||||||
|
|
Loading…
Reference in a new issue