]> git.mxchange.org Git - friendica-addons.git/blobdiff - notifyall/notifyall.php
Merge pull request #1203 from annando/deprecated
[friendica-addons.git] / notifyall / notifyall.php
index e5e94c7ec7e68786d9efe00926d52d0021bc48bd..8eff509313db966ae641d79e1906df5c11114c93 100644 (file)
@@ -25,7 +25,7 @@ function notifyall_addon_admin(App $a, &$o)
 
 function notifyall_post(App $a)
 {
-       if(!is_site_admin()) {
+       if (!$a->isSiteAdmin()) {
                return;
        }
 
@@ -62,7 +62,7 @@ function notifyall_post(App $a)
 
 function notifyall_content(&$a)
 {
-       if (! is_site_admin()) {
+       if (!$a->isSiteAdmin()) {
                return '';
        }