mirror of
https://github.com/openclassify/openclassify.git
synced 2026-02-09 23:06:08 -06:00
Merge pull request #437 from openclassify/dia
#1140 [fuardayim] remove allAdvs
This commit is contained in:
commit
1f632606d9
@ -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