]> git.mxchange.org Git - friendica.git/blobdiff - include/NotificationsManager.php
Issue-#3873
[friendica.git] / include / NotificationsManager.php
index 802d541d36547e8f139dd1851044840542be2002..d0b1d00679f9c249f6b4e40168cf4e0a38956939 100644 (file)
@@ -5,6 +5,7 @@
  *  or for formatting notifications
  */
 
+use Friendica\Core\Pconfig;
 use Friendica\Core\System;
 
 require_once 'include/html2plain.php';
@@ -781,7 +782,7 @@ class NotificationsManager {
                                        'name' => $it['fname'],
                                        'url' => zrl($it['furl']),
                                        'hidden' => $it['hidden'] == 1,
-                                       'post_newfriend' => (intval(get_pconfig(local_user(),'system','post_newfriend')) ? '1' : 0),
+                                       'post_newfriend' => (intval(PConfig::get(local_user(),'system','post_newfriend')) ? '1' : 0),
 
                                        'knowyou' => $knowyou,
                                        'note' => $it['note'],
@@ -814,7 +815,7 @@ class NotificationsManager {
                                        'keywords' => $it['gkeywords'],
                                        'gender' => $it['ggender'],
                                        'hidden' => $it['hidden'] == 1,
-                                       'post_newfriend' => (intval(get_pconfig(local_user(),'system','post_newfriend')) ? '1' : 0),
+                                       'post_newfriend' => (intval(PConfig::get(local_user(),'system','post_newfriend')) ? '1' : 0),
                                        'url' => $it['url'],
                                        'zrl' => zrl($it['url']),
                                        'addr' => $it['gaddr'],