forked from friendica/friendica-addons
Merge pull request #1193 from annando/no-enotify
Replace calls to "notification" with the new function
This commit is contained in:
commit
fd078ee0e2
|
@ -54,7 +54,7 @@ function public_server_cron($a, $b)
|
||||||
$users = DBA::selectToArray('user', [], ["`account_expires_on` < UTC_TIMESTAMP() + INTERVAL ? DAY AND
|
$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]);
|
`account_expires_on` > ? AND `expire_notification_sent` <= ?", 5, DBA::NULL_DATETIME, DBA::NULL_DATETIME]);
|
||||||
foreach ($users as $rr) {
|
foreach ($users as $rr) {
|
||||||
notification([
|
DI::notify()->createFromArray([
|
||||||
'type' => Notification\Type::SYSTEM,
|
'type' => Notification\Type::SYSTEM,
|
||||||
'uid' => $rr['uid'],
|
'uid' => $rr['uid'],
|
||||||
'system_type' => 'public_server_expire',
|
'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` <= ?",
|
$users = DBA::selectToArray('user', [], ["`account_expires_on` < UTC_TIMESTAMP() + INTERVAL ? DAY AND `expire_notification_sent` <= ?",
|
||||||
5, DBA::NULL_DATETIME]);
|
5, DBA::NULL_DATETIME]);
|
||||||
foreach($users as $rr) {
|
foreach($users as $rr) {
|
||||||
notification([
|
DI::notify()->createFromArray([
|
||||||
'type' => Notification\Type::SYSTEM,
|
'type' => Notification\Type::SYSTEM,
|
||||||
'uid' => $rr['uid'],
|
'uid' => $rr['uid'],
|
||||||
'system_type' => 'testdrive_expire',
|
'system_type' => 'testdrive_expire',
|
||||||
|
|
Loading…
Reference in a new issue