mirror of
https://github.com/YGGverse/Yo.git
synced 2026-03-31 09:45:30 +00:00
show last indexed pages on empty search request
This commit is contained in:
parent
1addef52c5
commit
4c56b48a39
1 changed files with 3 additions and 2 deletions
|
|
@ -119,8 +119,9 @@ switch (true)
|
||||||
case empty($q):
|
case empty($q):
|
||||||
|
|
||||||
$query = $index->search('')
|
$query = $index->search('')
|
||||||
->expression('random', 'rand()')
|
//->expression('random', 'rand()')
|
||||||
->sort('random', 'asc');
|
//->sort('random', 'asc')
|
||||||
|
->sort('time','desc');
|
||||||
|
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue