for "ABORTED" reason to be returned and displayed to user.
* (bug 28034) uploading file to local wiki when file exists on shared repository
(commons) gives spurious info in the warning message
+* Usernames get lost when selecting different sorts on Special:listfiles
=== API changes in 1.18 ===
* (bug 26339) Throw warning when truncating an overlarge API result
if ( !is_null( $this->mUserName ) ) {
# Append the username to the query string
foreach ( $queries as &$query ) {
- $query['username'] = $this->mUserName;
+ $query['user'] = $this->mUserName;
}
}
return $queries;
}
+
+ function getDefaultQuery() {
+ $queries = parent::getDefaultQuery();
+ if ( !isset( $queries['user'] )
+ && !is_null( $this->mUserName ) )
+ {
+ $queries['user'] = $this->mUserName;
+ }
+ return $queries;
+ }
}