mirror of
https://github.com/openclassify/openclassify.git
synced 2026-01-24 22:11:01 -06:00
#1140 [fuardayim] remove allAdvs
This commit is contained in:
parent
6abea4e223
commit
53e439d20a
@ -41,7 +41,7 @@ class AdvCriteria extends EntryCriteria
|
|||||||
->where('status', '=', 'approved')
|
->where('status', '=', 'approved')
|
||||||
->where('slug', '!=', '')
|
->where('slug', '!=', '')
|
||||||
->orderBy('publish_at', 'desc')
|
->orderBy('publish_at', 'desc')
|
||||||
->paginate($this->settings->value('visiosoft.theme.base::s-type-latest-limit'));
|
->paginate($this->settings->value('streams::per_page'));
|
||||||
|
|
||||||
$ads = $advModel->getLocationNames($latest_advs);
|
$ads = $advModel->getLocationNames($latest_advs);
|
||||||
foreach ($ads as $index => $ad) {
|
foreach ($ads as $index => $ad) {
|
||||||
@ -58,7 +58,7 @@ class AdvCriteria extends EntryCriteria
|
|||||||
->whereDate('finish_at', '>=', date("Y-m-d H:i:s"))
|
->whereDate('finish_at', '>=', date("Y-m-d H:i:s"))
|
||||||
->where('status', '=', 'approved')
|
->where('status', '=', 'approved')
|
||||||
->where('slug', '!=', '')
|
->where('slug', '!=', '')
|
||||||
->paginate($this->settings->value('visiosoft.theme.base::s-type-latest-limit'));
|
->paginate($this->settings->value('streams::per_page'));
|
||||||
|
|
||||||
$ads = $advModel->getLocationNames($latest_advs);
|
$ads = $advModel->getLocationNames($latest_advs);
|
||||||
foreach ($ads as $index => $ad) {
|
foreach ($ads as $index => $ad) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user