mirror of
https://github.com/openclassify/openclassify.git
synced 2026-01-11 18:01:10 -06:00
parent
67dd161514
commit
311cbd6ee1
@ -232,6 +232,15 @@ class AdvsController extends PublicController
|
||||
$advs = $this->adv_repository->searchAdvs('list', $param, $customParameters, null, $categoryId, $cityId);
|
||||
$advs = $this->adv_repository->addAttributes($advs);
|
||||
|
||||
if ($advs->currentPage() > $advs->lastPage()) {
|
||||
unset($param['page']);
|
||||
return redirect($this->fullLink(
|
||||
$param,
|
||||
\request()->url(),
|
||||
array()
|
||||
), 301);
|
||||
}
|
||||
|
||||
if ($isActiveDopings and $param != null) {
|
||||
$featured_advs = app('Visiosoft\DopingsModule\Http\Controller\DopingsController')->listFeatures($advs);
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user