Browse Source

Requests: Remove sort by user

spaghetti 7 years ago
parent
commit
0274694bcc
1 changed files with 4 additions and 4 deletions
  1. 4
    4
      sections/requests/requests.php

+ 4
- 4
sections/requests/requests.php View File

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

Loading…
Cancel
Save