use dc methods for widget settings
This commit is contained in:
parent
df21c8491c
commit
3c1cd62630
1 changed files with 1 additions and 3 deletions
|
@ -61,9 +61,7 @@ class dcLatestVersionsWidget
|
|||
return null;
|
||||
}
|
||||
|
||||
if (($w->homeonly == 1 && !dcCore::app()->url->isHome(dcCore::app()->url->type))
|
||||
|| ($w->homeonly == 2 && dcCore::app()->url->isHome(dcCore::app()->url->type))
|
||||
|| $w->text == '') {
|
||||
if (!$w->checkHomeOnly(dcCore::app()->url->type) || $w->text == '') {
|
||||
return null;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue