forked from friendica/friendica-addons
[various] Fix Notification class paths
- Address https://github.com/friendica/friendica/issues/9896 - Follow-up to https://github.com/friendica/friendica/pull/9860
This commit is contained in:
parent
84542e0048
commit
6d1ac20281
|
@ -58,7 +58,7 @@ function public_server_cron($a, $b)
|
|||
if (DBA::isResult($r)) {
|
||||
foreach ($r as $rr) {
|
||||
notification([
|
||||
'type' => Notification/Type::SYSTEM,
|
||||
'type' => Notification\Type::SYSTEM,
|
||||
'uid' => $rr['uid'],
|
||||
'system_type' => 'public_server_expire',
|
||||
'source_name' => DI::l10n()->t('Administrator'),
|
||||
|
@ -112,7 +112,7 @@ function public_server_cron($a, $b)
|
|||
|
||||
function public_server_enotify(&$a, &$b)
|
||||
{
|
||||
if (!empty($b['params']) && $b['params']['type'] == Type::SYSTEM
|
||||
if (!empty($b['params']) && $b['params']['type'] == Notification\Type::SYSTEM
|
||||
&& !empty($b['params']['system_type']) && $b['params']['system_type'] === 'public_server_expire') {
|
||||
$b['itemlink'] = DI::baseUrl()->get();
|
||||
$b['epreamble'] = $b['preamble'] = DI::l10n()->t('Your account on %s will expire in a few days.', DI::config()->get('system', 'sitename'));
|
||||
|
|
|
@ -58,7 +58,7 @@ function testdrive_cron($a,$b) {
|
|||
if(count($r)) {
|
||||
foreach($r as $rr) {
|
||||
notification([
|
||||
'type' => Notification/Type::SYSTEM,
|
||||
'type' => Notification\Type::SYSTEM,
|
||||
'uid' => $rr['uid'],
|
||||
'system_type' => 'testdrive_expire',
|
||||
'source_name' => DI::l10n()->t('Administrator'),
|
||||
|
@ -83,7 +83,7 @@ function testdrive_cron($a,$b) {
|
|||
}
|
||||
|
||||
function testdrive_enotify(&$a, &$b) {
|
||||
if (!empty($b['params']) && $b['params']['type'] == Type::SYSTEM
|
||||
if (!empty($b['params']) && $b['params']['type'] == Notification\Type::SYSTEM
|
||||
&& !empty($b['params']['system_type']) && $b['params']['system_type'] === 'testdrive_expire') {
|
||||
$b['itemlink'] = DI::baseUrl()->get();
|
||||
$b['epreamble'] = $b['preamble'] = DI::l10n()->t('Your account on %s will expire in a few days.', DI::config()->get('system', 'sitename'));
|
||||
|
|
Loading…
Reference in a new issue