use dc methods for widget settings

This commit is contained in:
Jean-Christian Paul Denis 2022-12-08 22:59:03 +01:00
parent b0ad90e1c7
commit 33cf760501
Signed by: JcDenis
GPG Key ID: 1B5B8C5B90B6C951

View File

@ -153,8 +153,7 @@ class zoneclearFeedServerWidget
} }
if (!dcCore::app()->blog->settings->zoneclearFeedServer->zoneclearFeedServer_active if (!dcCore::app()->blog->settings->zoneclearFeedServer->zoneclearFeedServer_active
|| $w->homeonly == 1 && !dcCore::app()->url->isHome(dcCore::app()->url->type) || !$w->checkHomeOnly(dcCore::app()->url->type)
|| $w->homeonly == 2 && dcCore::app()->url->isHome(dcCore::app()->url->type)
) { ) {
return null; return null;
} }
@ -214,8 +213,7 @@ class zoneclearFeedServerWidget
} }
if (!dcCore::app()->blog->settings->zoneclearFeedServer->zoneclearFeedServer_active if (!dcCore::app()->blog->settings->zoneclearFeedServer->zoneclearFeedServer_active
|| $w->homeonly == 1 && !dcCore::app()->url->isHome(dcCore::app()->url->type) || !$w->checkHomeOnly(dcCore::app()->url->type)
|| $w->homeonly == 2 && dcCore::app()->url->isHome(dcCore::app()->url->type)
) { ) {
return null; return null;
} }