use dc methods for widget settings

master
Jean-Christian Paul Denis 2022-12-08 22:55:37 +01:00
parent 61c905460f
commit cd0fbd47b0
Signed by: JcDenis
GPG Key ID: 1B5B8C5B90B6C951
1 changed files with 2 additions and 3 deletions

View File

@ -118,7 +118,7 @@ class widgetKutrl
if (!$s->kutrl_active
|| !$s->kutrl_srv_local_public
|| ($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)
|| dcCore::app()->url->type == 'kutrl') {
return null;
}
@ -153,8 +153,7 @@ class widgetKutrl
{
$s = dcCore::app()->blog->settings->kUtRL;
if (!$s->kutrl_active
|| ($w->homeonly == 1 && !dcCore::app()->url->isHome(dcCore::app()->url->type)) || ($w->homeonly == 2 && dcCore::app()->url->isHome(dcCore::app()->url->type))) {
if (!$s->kutrl_active || !$w->checkHomeOnly(dcCore::app()->url->type)) {
return null;
}