use Friendica\Core\Renderer;
use Friendica\Database\DBA;
use Friendica\DI;
+use Friendica\Model\Notify\Type;
use Friendica\Util\ConfigFileLoader;
use Friendica\Util\DateTimeFormat;
use Friendica\Util\Strings;
foreach ($r as $rr) {
notification([
'uid' => $rr['uid'],
- 'type' => NOTIFY_SYSTEM,
+ 'type' => Type::SYSTEM,
'system_type' => 'public_server_expire',
'language' => $rr['language'],
'to_name' => $rr['username'],
function public_server_enotify(&$a, &$b)
{
- if (!empty($b['params']) && $b['params']['type'] == NOTIFY_SYSTEM
+ if (!empty($b['params']) && $b['params']['type'] == 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'));
use Friendica\Core\Search;
use Friendica\Database\DBA;
use Friendica\DI;
+use Friendica\Model\Notify\Type;
use Friendica\Model\User;
use Friendica\Util\ConfigFileLoader;
use Friendica\Util\DateTimeFormat;
foreach($r as $rr) {
notification([
'uid' => $rr['uid'],
- 'type' => NOTIFY_SYSTEM,
+ 'type' => Type::SYSTEM,
'system_type' => 'testdrive_expire',
'language' => $rr['language'],
'to_name' => $rr['username'],
}
function testdrive_enotify(&$a, &$b) {
- if (!empty($b['params']) && $b['params']['type'] == NOTIFY_SYSTEM
+ if (!empty($b['params']) && $b['params']['type'] == 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'));