Index: trunk/phase3/includes/specials/SpecialListfiles.php |
— | — | @@ -238,9 +238,19 @@ |
239 | 239 | if ( !is_null( $this->mUserName ) ) { |
240 | 240 | # Append the username to the query string |
241 | 241 | foreach ( $queries as &$query ) { |
242 | | - $query['username'] = $this->mUserName; |
| 242 | + $query['user'] = $this->mUserName; |
243 | 243 | } |
244 | 244 | } |
245 | 245 | return $queries; |
246 | 246 | } |
| 247 | + |
| 248 | + function getDefaultQuery() { |
| 249 | + $queries = parent::getDefaultQuery(); |
| 250 | + if ( !isset( $queries['user'] ) |
| 251 | + && !is_null( $this->mUserName ) ) |
| 252 | + { |
| 253 | + $queries['user'] = $this->mUserName; |
| 254 | + } |
| 255 | + return $queries; |
| 256 | + } |
247 | 257 | } |
Index: trunk/phase3/RELEASE-NOTES |
— | — | @@ -193,6 +193,7 @@ |
194 | 194 | for "ABORTED" reason to be returned and displayed to user. |
195 | 195 | * (bug 28034) uploading file to local wiki when file exists on shared repository |
196 | 196 | (commons) gives spurious info in the warning message |
| 197 | +* Usernames get lost when selecting different sorts on Special:listfiles |
197 | 198 | |
198 | 199 | === API changes in 1.18 === |
199 | 200 | * (bug 26339) Throw warning when truncating an overlarge API result |