Jack Phoenix has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/92165


Change subject: SocialProfile: fixed Special:AddRelationship so that friending 
& foeing works again.
......................................................................

SocialProfile: fixed Special:AddRelationship so that friending & foeing
works again.

Change-Id: I938079eeb1beaa148ed727e49d39096786634f86
---
M UserRelationship/SpecialAddRelationship.php
1 file changed, 2 insertions(+), 2 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/SocialProfile 
refs/changes/65/92165/1

diff --git a/UserRelationship/SpecialAddRelationship.php 
b/UserRelationship/SpecialAddRelationship.php
index 128a25d..8525412 100644
--- a/UserRelationship/SpecialAddRelationship.php
+++ b/UserRelationship/SpecialAddRelationship.php
@@ -52,7 +52,7 @@
 
                $this->user_name_to = $userTitle->getText();
                $this->user_id_to = User::idFromName( $this->user_name_to );
-               $this->relationship_type = $wgRequest->getInt( 'rel_type' );
+               $this->relationship_type = $request->getInt( 'rel_type' );
                if ( !$this->relationship_type || !is_numeric( 
$this->relationship_type ) ) {
                        $this->relationship_type = 1;
                }
@@ -140,7 +140,7 @@
 
                        $avatar = new wAvatar( $this->user_id_to, 'l' );
 
-                       $wgOut->setPageTitle( $this->msg( 
'ur-add-error-message-pending-request-title' )->plain() );
+                       $out->setPageTitle( $this->msg( 
'ur-add-error-message-pending-request-title' )->plain() );
 
                        $output = "<div class=\"relationship-action\">
                                {$avatar->getAvatarURL()}

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I938079eeb1beaa148ed727e49d39096786634f86
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/SocialProfile
Gerrit-Branch: master
Gerrit-Owner: Jack Phoenix <[email protected]>

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

Reply via email to