]> git.mxchange.org Git - friendica-addons.git/blobdiff - curweather/curweather.php
"escapeTags" is removed from the addons
[friendica-addons.git] / curweather / curweather.php
index 303fbbf942116290586c6d92c8e4e5044893b2c0..118c4a9a550beb10b7b57f5cfb69556f164b2a41 100644 (file)
@@ -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;
        }