mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2024-11-21 14:43:40 +00:00
Replace calls to "notification" with the new function
This commit is contained in:
parent
d7fe20a1c3
commit
6b0172d093
2 changed files with 2 additions and 2 deletions
|
@ -54,7 +54,7 @@ function public_server_cron($a, $b)
|
|||
$users = DBA::selectToArray('user', [], ["`account_expires_on` < UTC_TIMESTAMP() + INTERVAL ? DAY AND
|
||||
`account_expires_on` > ? AND `expire_notification_sent` <= ?", 5, DBA::NULL_DATETIME, DBA::NULL_DATETIME]);
|
||||
foreach ($users as $rr) {
|
||||
notification([
|
||||
DI::notify()->createFromArray([
|
||||
'type' => Notification\Type::SYSTEM,
|
||||
'uid' => $rr['uid'],
|
||||
'system_type' => 'public_server_expire',
|
||||
|
|
|
@ -51,7 +51,7 @@ function testdrive_cron($a,$b) {
|
|||
$users = DBA::selectToArray('user', [], ["`account_expires_on` < UTC_TIMESTAMP() + INTERVAL ? DAY AND `expire_notification_sent` <= ?",
|
||||
5, DBA::NULL_DATETIME]);
|
||||
foreach($users as $rr) {
|
||||
notification([
|
||||
DI::notify()->createFromArray([
|
||||
'type' => Notification\Type::SYSTEM,
|
||||
'uid' => $rr['uid'],
|
||||
'system_type' => 'testdrive_expire',
|
||||
|
|
Loading…
Reference in a new issue