diff --git a/_widgets.php b/_widgets.php index fff5eb2..61dfd4e 100644 --- a/_widgets.php +++ b/_widgets.php @@ -221,8 +221,7 @@ class lastpostsextendWidget } # Home page only - 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; }