mirror of
https://github.com/friendica/friendica
synced 2024-12-22 22:00:16 +00:00
change event display order
This commit is contained in:
parent
323a7e4c9c
commit
1d325f6e76
1 changed files with 2 additions and 2 deletions
4
boot.php
4
boot.php
|
@ -989,7 +989,7 @@ function get_birthdays() {
|
|||
$r = q("SELECT `event`.*, `event`.`id` AS `eid`, `contact`.* FROM `event`
|
||||
LEFT JOIN `contact` ON `contact`.`id` = `event`.`cid`
|
||||
WHERE `event`.`uid` = %d AND `type` = 'birthday' AND `start` < '%s' AND `finish` > '%s'
|
||||
ORDER BY `start` DESC ",
|
||||
ORDER BY `start` ASC ",
|
||||
intval(local_user()),
|
||||
dbesc(datetime_convert('UTC','UTC','now + 6 days')),
|
||||
dbesc(datetime_convert('UTC','UTC','now'))
|
||||
|
@ -1047,7 +1047,7 @@ function get_events() {
|
|||
|
||||
$r = q("SELECT `event`.* FROM `event`
|
||||
WHERE `event`.`uid` = %d AND `type` != 'birthday' AND `start` < '%s' AND `start` > '%s'
|
||||
ORDER BY `start` DESC ",
|
||||
ORDER BY `start` ASC ",
|
||||
intval(local_user()),
|
||||
dbesc(datetime_convert('UTC','UTC','now + 6 days')),
|
||||
dbesc(datetime_convert('UTC','UTC','now - 1 days'))
|
||||
|
|
Loading…
Reference in a new issue