use dc methods for widget settings
This commit is contained in:
parent
61c905460f
commit
cd0fbd47b0
@ -118,7 +118,7 @@ class widgetKutrl
|
|||||||
|
|
||||||
if (!$s->kutrl_active
|
if (!$s->kutrl_active
|
||||||
|| !$s->kutrl_srv_local_public
|
|| !$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') {
|
|| dcCore::app()->url->type == 'kutrl') {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
@ -153,8 +153,7 @@ class widgetKutrl
|
|||||||
{
|
{
|
||||||
$s = dcCore::app()->blog->settings->kUtRL;
|
$s = dcCore::app()->blog->settings->kUtRL;
|
||||||
|
|
||||||
if (!$s->kutrl_active
|
if (!$s->kutrl_active || !$w->checkHomeOnly(dcCore::app()->url->type)) {
|
||||||
|| ($w->homeonly == 1 && !dcCore::app()->url->isHome(dcCore::app()->url->type)) || ($w->homeonly == 2 && dcCore::app()->url->isHome(dcCore::app()->url->type))) {
|
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user