use dc methods for widget settings
This commit is contained in:
parent
391db4af04
commit
86a2f75445
1 changed files with 1 additions and 2 deletions
|
@ -41,8 +41,7 @@ class widgetsCategoriesPage
|
|||
return;
|
||||
}
|
||||
|
||||
if (($w->homeonly == 1 && !dcCore::app()->url->isHome(dcCore::app()->url->type))
|
||||
|| ($w->homeonly == 2 && dcCore::app()->url->isHome(dcCore::app()->url->type))) {
|
||||
if (!$w->checkHomeOnly(dcCore::app()->url->type)) {
|
||||
return null;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue