Jack Phoenix has submitted this change and it was merged.
Change subject: SocialProfile: fixed Special:ViewGift so that it actually works.
......................................................................
SocialProfile: fixed Special:ViewGift so that it actually works.
Change-Id: I3ad3b85fe249804edd2234463638bf72faf24b7a
---
M UserGifts/SpecialViewGift.php
1 file changed, 3 insertions(+), 4 deletions(-)
Approvals:
Jack Phoenix: Verified; Looks good to me, approved
diff --git a/UserGifts/SpecialViewGift.php b/UserGifts/SpecialViewGift.php
index c95cd13..6cc1fbe 100644
--- a/UserGifts/SpecialViewGift.php
+++ b/UserGifts/SpecialViewGift.php
@@ -48,7 +48,7 @@
array( 'DISTINCT ug_user_name_to',
'ug_user_id_to', 'ug_date' ),
array(
'ug_gift_id' => $gift['gift_id'],
- "ug_user_name_to <> '" .
$dbr->addQuotes( $gift['user_name_to'] ) . "'"
+ 'ug_user_name_to <> ' .
$dbr->addQuotes( $gift['user_name_to'] )
),
__METHOD__,
array(
@@ -60,7 +60,6 @@
$out->setPageTitle( $this->msg(
'g-description-title',
- 'parsemag',
$gift['user_name_to'],
$gift['name']
)->parse() );
@@ -70,7 +69,7 @@
. $this->msg( 'g-back-link',
$gift['user_name_to'] )->parse() . '</a>
</div>';
- $user = Title::makeTitle( NS_USER,
$gift['user_name_from'] );
+ $sender = Title::makeTitle( NS_USER,
$gift['user_name_from'] );
$removeGiftLink = SpecialPage::getTitleFor(
'RemoveGift' );
$giveGiftLink = SpecialPage::getTitleFor( 'GiveGift' );
@@ -87,7 +86,7 @@
<div class="g-timestamp">(' .
$gift['timestamp'] . ')</div>
<div class="g-from">' . $this->msg(
'g-from',
- $user->escapeFullURL(),
+ $sender->escapeFullURL(),
$gift['user_name_from']
)->text() . '</div>';
if ( $message ) {
--
To view, visit https://gerrit.wikimedia.org/r/92164
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: I3ad3b85fe249804edd2234463638bf72faf24b7a
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/SocialProfile
Gerrit-Branch: master
Gerrit-Owner: Jack Phoenix <[email protected]>
Gerrit-Reviewer: Jack Phoenix <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits