Index: trunk/extensions/GPoC/templates/FilterRatingsTemplate.php |
— | — | @@ -31,15 +31,17 @@ |
32 | 32 | <h3>Results</h3> |
33 | 33 | <table> |
34 | 34 | <tr> |
| 35 | + <th>Project</th> |
35 | 36 | <th>Article</th> |
36 | 37 | <th>Importance</th> |
37 | | - <th>Quality</th> |
| 38 | + <th>Quality</th> |
38 | 39 | </tr> |
39 | 40 | <?php foreach( $articles as $article ) { ?> |
40 | 41 | <tr> |
41 | | - <td><?php echo $article['r_article']; ?></td> |
| 42 | + <td><?php echo $article['r_project'] ?></td> |
| 43 | + <td><a href="<?php echo $article['title']->getLinkURL(); ?>"><?php echo $article['r_article']; ?></a></td> |
42 | 44 | <td><?php echo $article['r_importance']; ?></td> |
43 | | - <td><?php echo $article['r_quality']; ?></td> |
| 45 | + <td><?php echo $article['r_quality']; ?></td> |
44 | 46 | </tr> |
45 | 47 | <?php } ?> |
46 | 48 | </table> |
Index: trunk/extensions/GPoC/models/Rating.php |
— | — | @@ -173,12 +173,11 @@ |
174 | 174 | $dbr = wfGetDB( DB_SLAVE ); |
175 | 175 | $database_filters = array(); |
176 | 176 | |
177 | | - foreach($filters as $column => $value) { |
178 | | - if( ! ( !isset($value) or $value == null or $value == "" ) && in_array( $value, $database_filters_columns ) ) { |
| 177 | + foreach($filters as $column => $value) { |
| 178 | + if( ! ( !isset($value) or $value == null or $value == "" ) && in_array( $column, $database_filters_columns ) ) { |
179 | 179 | $database_filters[$column] = $value; |
180 | 180 | } |
181 | 181 | } |
182 | | - |
183 | 182 | $category_filters = explode( ',', trim( $filters['categories'] ) ); |
184 | 183 | $query = $dbr->select( |
185 | 184 | 'ratings', |