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,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&amp;sort=<?=($OrderBy === 'year' ? $NewSort : 'desc')?>&amp;<?=$CurrentURL?>"><strong>Year</strong></a>
432
+        <strong>Request Name</strong>
433 433
       </td>
434 434
       <td class="nobr">
435 435
         <a href="?order=votes&amp;sort=<?=($OrderBy === 'votes' ? $NewSort : 'desc')?>&amp;<?=$CurrentURL?>"><strong>Votes</strong></a>

Loading…
Cancel
Save