]> git.mxchange.org Git - friendica.git/blobdiff - include/enotify.php
Update functions and calls
[friendica.git] / include / enotify.php
index ab4bbc6db249c1fb84ebd85fd16f8a8ae1212e85..69921cd4d635af600a88b7d7afbb709fe3cf30dc 100644 (file)
@@ -5,6 +5,7 @@
 use Friendica\App;
 use Friendica\Core\Addon;
 use Friendica\Core\Config;
+use Friendica\Core\L10n;
 use Friendica\Core\System;
 use Friendica\Database\DBM;
 use Friendica\Util\Emailer;
@@ -26,7 +27,7 @@ function notification($params)
        $a = get_app();
 
        // from here on everything is in the recipients language
-       push_lang($params['language']);
+       L10n::pushLang($params['language']);
 
        $banner = t('Friendica Notification');
        $product = FRIENDICA_PLATFORM;
@@ -123,7 +124,7 @@ function notification($params)
                        intval($params['uid'])
                );
                if ($p && count($p)) {
-                       pop_lang();
+                       L10n::popLang();
                        return;
                }
 
@@ -444,7 +445,7 @@ function notification($params)
                Addon::callHooks('enotify_store', $datarray);
 
                if ($datarray['abort']) {
-                       pop_lang();
+                       L10n::popLang();
                        return False;
                }
 
@@ -473,7 +474,7 @@ function notification($params)
                if ($r) {
                        $notify_id = $r[0]['id'];
                } else {
-                       pop_lang();
+                       L10n::popLang();
                        return False;
                }
 
@@ -492,8 +493,8 @@ function notification($params)
 
                        // only continue on if we stored the first one
                        if ($notify_id != $p[0]['id']) {
-                               pop_lang();
-                               return False;
+                               L10n::popLang();
+                               return false;
                        }
                }