X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=curweather%2Fcurweather.php;h=118c4a9a550beb10b7b57f5cfb69556f164b2a41;hb=cff3dd67b065983dcbe13858a2a31f2de9992659;hp=303fbbf942116290586c6d92c8e4e5044893b2c0;hpb=9b5745b75b6a4c489d9a77696d941e17054913e3;p=friendica-addons.git diff --git a/curweather/curweather.php b/curweather/curweather.php index 303fbbf9..118c4a9a 100644 --- a/curweather/curweather.php +++ b/curweather/curweather.php @@ -10,7 +10,7 @@ */ use Friendica\App; -use Friendica\Core\Cache\Duration; +use Friendica\Core\Cache\Enum\Duration; use Friendica\Core\Hook; use Friendica\Core\Renderer; use Friendica\Core\Session; @@ -204,7 +204,7 @@ function curweather_addon_settings(App $a, &$s) // for accessing the API of openweathermap function curweather_addon_admin_post(App $a) { - if (!is_site_admin()) { + if (!$a->isSiteAdmin()) { return; } @@ -216,7 +216,7 @@ function curweather_addon_admin_post(App $a) function curweather_addon_admin(App $a, &$o) { - if (!is_site_admin()) { + if (!$a->isSiteAdmin()) { return; }