Support for cleared boot.php

This commit is contained in:
Michael 2021-11-04 20:32:16 +00:00
parent 95622a0f0d
commit 6a349e7fd9
15 changed files with 38 additions and 25 deletions

View file

@ -35,7 +35,7 @@ function cookienotice_install()
*/
function cookienotice_addon_admin(App $a, &$s)
{
if (!is_site_admin()) {
if (!$a->isSiteAdmin()) {
return;
}
@ -63,7 +63,7 @@ function cookienotice_addon_admin(App $a, &$s)
*/
function cookienotice_addon_admin_post(App $a)
{
if (!is_site_admin()) {
if (!$a->isSiteAdmin()) {
return;
}