use dc methods for widget settings

master
Jean-Christian Paul Denis 2022-12-08 22:54:16 +01:00
parent df21c8491c
commit 3c1cd62630
Signed by: JcDenis
GPG Key ID: 1B5B8C5B90B6C951
1 changed files with 1 additions and 3 deletions

View File

@ -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;
}