Krinkle has uploaded a new change for review.
https://gerrit.wikimedia.org/r/222732
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(-)
git pull ssh://gerrit.wikimedia.org:29418/labs/tools/guc
refs/changes/32/222732/1
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>'
- . ' (<a
href="'.htmlspecialchars($this->getUrl("User_talk:{$this->user}")).'">talk</a> |
'
- . '<a
href="'.htmlspecialchars($this->getUrl("Special:Contributions/{$this->user}")).'"
title="Special:Contributions">contribs</a>)';
+ . ' (<a
href="'.htmlspecialchars($this->getUrl("User_talk:{$rc->rev_user_text}")).'">talk</a> |
'
+ . '<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: newchange
Gerrit-Change-Id: Ibc8136b1afa239cb0b62cb6d6ef67f031825c334
Gerrit-PatchSet: 1
Gerrit-Project: labs/tools/guc
Gerrit-Branch: master
Gerrit-Owner: Krinkle <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits