mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2025-06-07 09:54:27 +02:00
Support for cleared boot.php
This commit is contained in:
parent
95622a0f0d
commit
6a349e7fd9
15 changed files with 38 additions and 25 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue