Continued a bit:

- removed/fixed whitespaces and mixture of spaces/tabs (some)
- added new-line character at end of files (POSIX-compilant)
- reverted some code which I had messed up (compared to upstream/develop)
- removed duplicate dba::update() invocation in src/Protocol/DFRN.php
- also removed no longer valid TODO

Signed-off-by: Roland Häder <roland@mxchange.org>
This commit is contained in:
Roland Häder 2018-06-20 22:12:59 +02:00
commit 8ad523fbc8
No known key found for this signature in database
GPG key ID: B72F8185C6C7BD78
9 changed files with 24 additions and 22 deletions

View file

@ -1230,7 +1230,9 @@ function photos_content(App $a)
* By now we hide it if someone wants to.
*/
if (!Config::get('system', 'no_count', false)) {
if ($_GET['order'] === 'posted') {
$order_field = defaults($_GET, 'order', '');
if ($order_field === 'posted') {
$order = 'ASC';
} else {
$order = 'DESC';