Index: trunk/extensions/Wikilog/WikilogQuery.php |
— | — | @@ -253,7 +253,7 @@ |
254 | 254 | } elseif ( is_string( $author ) ) { |
255 | 255 | $t = Title::makeTitleSafe( NS_USER, $author ); |
256 | 256 | if ( $t !== null ) { |
257 | | - $this->mAuthor = $t; |
| 257 | + $this->mAuthor = User::getCanonicalName( $t->getText() ); |
258 | 258 | } |
259 | 259 | } |
260 | 260 | } |
— | — | @@ -354,7 +354,7 @@ |
355 | 355 | if ( $this->mAuthor ) { |
356 | 356 | $q_tables[] = 'wikilog_authors'; |
357 | 357 | $q_joins['wikilog_authors'] = array( 'JOIN', 'wlp_page = wla_page' ); |
358 | | - $q_conds['wla_author_text'] = $this->mAuthor->getDBkey(); |
| 358 | + $q_conds['wla_author_text'] = $this->mAuthor; |
359 | 359 | } |
360 | 360 | |
361 | 361 | # Filter by tag. |
— | — | @@ -412,7 +412,7 @@ |
413 | 413 | } |
414 | 414 | |
415 | 415 | if ( $this->mAuthor ) { |
416 | | - $query['author'] = $this->mAuthor->getDBKey(); |
| 416 | + $query['author'] = $this->mAuthor; |
417 | 417 | } |
418 | 418 | |
419 | 419 | if ( $this->mTag ) { |
— | — | @@ -594,7 +594,7 @@ |
595 | 595 | } elseif ( is_string( $author ) ) { |
596 | 596 | $t = Title::makeTitleSafe( NS_USER, $author ); |
597 | 597 | if ( $t !== null ) { |
598 | | - $this->mAuthor = $t; |
| 598 | + $this->mAuthor = User::getCanonicalName( $t->getText() ); |
599 | 599 | } |
600 | 600 | } |
601 | 601 | } |
— | — | @@ -686,7 +686,7 @@ |
687 | 687 | |
688 | 688 | # Filter by author. |
689 | 689 | if ( $this->mAuthor ) { |
690 | | - $q_conds['wlc_user_text'] = $this->mAuthor->getDBkey(); |
| 690 | + $q_conds['wlc_user_text'] = $this->mAuthor; |
691 | 691 | } |
692 | 692 | |
693 | 693 | # Filter by date. |
— | — | @@ -737,7 +737,7 @@ |
738 | 738 | } |
739 | 739 | |
740 | 740 | if ( $this->mAuthor ) { |
741 | | - $query['author'] = $this->mAuthor->getDBKey(); |
| 741 | + $query['author'] = $this->mAuthor; |
742 | 742 | } |
743 | 743 | |
744 | 744 | if ( $this->mDate ) { |