|
@@ -2,14 +2,14 @@
|
2
|
2
|
$SphQL = new SphinxqlQuery();
|
3
|
3
|
$SphQL->select('id, votes, bounty')->from('requests, requests_delta');
|
4
|
4
|
|
5
|
|
-$SortOrders = array(
|
|
5
|
+$SortOrders = [
|
6
|
6
|
'votes' => 'votes',
|
7
|
7
|
'bounty' => 'bounty',
|
8
|
8
|
'lastvote' => 'lastvote',
|
9
|
9
|
'filled' => 'timefilled',
|
10
|
|
- 'year' => 'year',
|
11
|
10
|
'created' => 'timeadded',
|
12
|
|
- 'random' => false);
|
|
11
|
+ 'random' => false
|
|
12
|
+];
|
13
|
13
|
|
14
|
14
|
if (empty($_GET['order']) || !isset($SortOrders[$_GET['order']])) {
|
15
|
15
|
$_GET['order'] = 'created';
|
|
@@ -429,7 +429,7 @@ View::show_header($Title, 'requests');
|
429
|
429
|
<tr class="colhead_dark">
|
430
|
430
|
<td class="small cats_col"></td>
|
431
|
431
|
<td style="width: 38%;" class="nobr">
|
432
|
|
- <strong>Request Name</strong> / <a href="?order=year&sort=<?=($OrderBy === 'year' ? $NewSort : 'desc')?>&<?=$CurrentURL?>"><strong>Year</strong></a>
|
|
432
|
+ <strong>Request Name</strong>
|
433
|
433
|
</td>
|
434
|
434
|
<td class="nobr">
|
435
|
435
|
<a href="?order=votes&sort=<?=($OrderBy === 'votes' ? $NewSort : 'desc')?>&<?=$CurrentURL?>"><strong>Votes</strong></a>
|