From cfe409901ccb36662cf09946d8682f488a796fe0 Mon Sep 17 00:00:00 2001 From: Diatrex Date: Fri, 15 Nov 2019 15:44:23 +0300 Subject: [PATCH] #1 Adding and fixing the demo ad images (make it local) --- addons/default/visiosoft/advs-module/src/Adv/AdvModel.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/default/visiosoft/advs-module/src/Adv/AdvModel.php b/addons/default/visiosoft/advs-module/src/Adv/AdvModel.php index e5013174b..cf8394d33 100644 --- a/addons/default/visiosoft/advs-module/src/Adv/AdvModel.php +++ b/addons/default/visiosoft/advs-module/src/Adv/AdvModel.php @@ -152,7 +152,7 @@ class AdvModel extends AdvsAdvsEntryModel implements AdvInterface public function popularAdvs() { - return $this->getAdv()->where('popular_adv', 1)->paginate(2); + return $this->getAdv()->orderBy('count_show_ad', 'desc')->limit(10)->get(); } public function advsofDay()