Krinkle has submitted this change and it was merged.

Change subject: Fix "talk" and "contribs" links in results for prefix search
......................................................................


Fix "talk" and "contribs" links in results for prefix search

Follows-up beb5d5b.

They used "user" search instead of "rev_user_text" for the link,
so it pointed to "User_talk:JohnD%" instead of "User_talk:JohnDoe".

Change-Id: Ibc8136b1afa239cb0b62cb6d6ef67f031825c334
---
M lb/wikicontribs.php
1 file changed, 2 insertions(+), 2 deletions(-)

Approvals:
  Krinkle: Verified; Looks good to me, approved



diff --git a/lb/wikicontribs.php b/lb/wikicontribs.php
index 7e381b9..345f6f0 100644
--- a/lb/wikicontribs.php
+++ b/lb/wikicontribs.php
@@ -311,8 +311,8 @@
             if ($this->options['isPrefixPattern']) {
                 $item[] = '<a 
href="'.htmlspecialchars($this->getUrl("User:{$rc->rev_user_text}")).'">'
                     . htmlspecialchars($rc->rev_user_text).'</a>'
-                    . '&nbsp;(<a 
href="'.htmlspecialchars($this->getUrl("User_talk:{$this->user}")).'">talk</a>&nbsp;|
 '
-                    . '<a 
href="'.htmlspecialchars($this->getUrl("Special:Contributions/{$this->user}")).'"
 title="Special:Contributions">contribs</a>)';
+                    . '&nbsp;(<a 
href="'.htmlspecialchars($this->getUrl("User_talk:{$rc->rev_user_text}")).'">talk</a>&nbsp;|
 '
+                    . '<a 
href="'.htmlspecialchars($this->getUrl("Special:Contributions/{$rc->rev_user_text}")).'"
 title="Special:Contributions">contribs</a>)';
                 $item[] = '. .';
             }
             // Minor edit

-- 
To view, visit https://gerrit.wikimedia.org/r/222732
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: Ibc8136b1afa239cb0b62cb6d6ef67f031825c334
Gerrit-PatchSet: 1
Gerrit-Project: labs/tools/guc
Gerrit-Branch: master
Gerrit-Owner: Krinkle <[email protected]>
Gerrit-Reviewer: Krinkle <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to