]> git.mxchange.org Git - friendica.git/blobdiff - mod/notify.php
Fix various spelling mistakes
[friendica.git] / mod / notify.php
index a65e14debb8e6ce5dec7b8b3d032967e159aac2c..a277e59813ecb53a11907a2a7e9736a609408cdb 100644 (file)
@@ -8,7 +8,7 @@ use Friendica\Content\Text\BBCode;
 use Friendica\Core\L10n;
 use Friendica\Core\NotificationsManager;
 use Friendica\Core\System;
-use Friendica\Database\DBM;
+use Friendica\Database\DBA;
 use Friendica\Model\Item;
 use Friendica\Module\Login;
 use Friendica\Util\Temporal;
@@ -27,7 +27,7 @@ function notify_init(App $a)
                        $nm->setSeen($note);
 
                        // The friendica client has problems with the GUID. this is some workaround
-                       if ($a->is_friendica_app()) {
+                       if ($a->isFriendicaApp()) {
                                require_once("include/items.php");
                                $urldata = parse_url($note['link']);
                                $guid = basename($urldata["path"]);
@@ -62,10 +62,9 @@ function notify_content(App $a)
        $notif_tpl = get_markup_template('notifications.tpl');
 
        $not_tpl = get_markup_template('notify.tpl');
-       require_once('include/bbcode.php');
 
        $r = $nm->getAll(['seen'=>0]);
-       if (DBM::is_result($r) > 0) {
+       if (DBA::isResult($r) > 0) {
                foreach ($r as $it) {
                        $notif_content .= replace_macros($not_tpl, [
                                '$item_link' => System::baseUrl(true).'/notify/view/'. $it['id'],