]> git.mxchange.org Git - friendica-addons.git/blobdiff - testdrive/testdrive.php
jappixmini addon IT translation update THX Sylke Vicious
[friendica-addons.git] / testdrive / testdrive.php
index f0d29e0e078bf7f2e1d0439534653a06a29aa5f3..7c3af59e0253e21c5442d605dc5895669db64823 100644 (file)
@@ -11,7 +11,7 @@ use Friendica\Core\Hook;
 use Friendica\Core\Search;
 use Friendica\Database\DBA;
 use Friendica\DI;
-use Friendica\Model\Notify\Type;
+use Friendica\Model\Notification;
 use Friendica\Model\User;
 use Friendica\Util\ConfigFileLoader;
 use Friendica\Util\DateTimeFormat;
@@ -58,7 +58,7 @@ function testdrive_cron($a,$b) {
        if(count($r)) {
                foreach($r as $rr) {
                        notification([
-                               'type' => 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'));