/**
* Set the log reader to return only entries by the given user.
- * @param string $name Valid user name
+ * @param string $name (In)valid user name
* @private
*/
function limitUser( $name ) {
+ if ( $name == '' )
+ return false;
$title = Title::makeTitle( NS_USER, $name );
- if( empty( $name ) || is_null( $title ) ) {
+ if ( is_null( $title ) )
return false;
- }
- $this->user = str_replace( '_', ' ', $title->getDBkey() );
+ $this->user = $title->getText();
$safename = $this->db->strencode( $this->user );
$user = $this->db->tableName( 'user' );
$this->whereClauses[] = "user_name='$safename'";