use dc methods for widget settings

master
Jean-Christian Paul Denis 2022-12-08 22:53:43 +01:00
parent c094da98cc
commit ec3c42e4e7
Signed by: JcDenis
GPG Key ID: 1B5B8C5B90B6C951
1 changed files with 2 additions and 4 deletions

View File

@ -158,8 +158,7 @@ class cinecturlink2Widget
dcCore::app()->blog->settings->addNamespace('cinecturlink2');
if (!dcCore::app()->blog->settings->cinecturlink2->cinecturlink2_active
|| $w->homeonly == 1 && !dcCore::app()->url->isHome(dcCore::app()->url->type)
|| $w->homeonly == 2 && dcCore::app()->url->isHome(dcCore::app()->url->type)
|| !$w->checkHomeOnly(dcCore::app()->url->type)
) {
return null;
}
@ -272,8 +271,7 @@ class cinecturlink2Widget
if (!dcCore::app()->blog->settings->cinecturlink2->cinecturlink2_active
|| !dcCore::app()->blog->settings->cinecturlink2->cinecturlink2_public_active
|| $w->homeonly == 1 && !dcCore::app()->url->isHome(dcCore::app()->url->type)
|| $w->homeonly == 2 && dcCore::app()->url->isHome(dcCore::app()->url->type)
|| !$w->checkHomeOnly(dcCore::app()->url->type)
) {
return null;
}