jenkins-bot has submitted this change and it was merged.

Change subject: Hygiene: Revision::getRawUserText() was depreacted
......................................................................


Hygiene: Revision::getRawUserText() was depreacted

Was deprecated in Ic6fbfbc0507dcf88072fcb2a2e2364ae1436dce7, use
Revision::getUserText( Revision::RAW ) instead.

Change-Id: I52bd3fab5d38edc78dc41a934d2b504e5fb5582e
---
M includes/specials/SpecialMobileContributions.php
M includes/specials/SpecialMobileHistory.php
2 files changed, 2 insertions(+), 2 deletions(-)

Approvals:
  Phuedx: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/includes/specials/SpecialMobileContributions.php 
b/includes/specials/SpecialMobileContributions.php
index cac225b..b9700ab 100644
--- a/includes/specials/SpecialMobileContributions.php
+++ b/includes/specials/SpecialMobileContributions.php
@@ -116,7 +116,7 @@
                $user = $this->getUser();
                $userId = $rev->getUser( Revision::FOR_THIS_USER, $user );
                if ( $userId === 0 ) {
-                       $username = IP::prettifyIP( $rev->getRawUserText() );
+                       $username = IP::prettifyIP( $rev->getUserText( 
Revision::RAW ) );
                        $isAnon = true;
                } else {
                        $username = $rev->getUserText( Revision::FOR_THIS_USER, 
$user );
diff --git a/includes/specials/SpecialMobileHistory.php 
b/includes/specials/SpecialMobileHistory.php
index f01ffc2..5f082e3 100644
--- a/includes/specials/SpecialMobileHistory.php
+++ b/includes/specials/SpecialMobileHistory.php
@@ -146,7 +146,7 @@
                $user = $this->getUser();
                $userId = $rev->getUser( Revision::FOR_THIS_USER, $user );
                if ( $userId === 0 ) {
-                       $username = IP::prettifyIP( $rev->getRawUserText() );
+                       $username = IP::prettifyIP( $rev->getUserText( 
Revision::RAW ) );
                        $isAnon = true;
                } else {
                        $username = $rev->getUserText( Revision::FOR_THIS_USER, 
$user );

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

Gerrit-MessageType: merged
Gerrit-Change-Id: I52bd3fab5d38edc78dc41a934d2b504e5fb5582e
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/MobileFrontend
Gerrit-Branch: master
Gerrit-Owner: Florianschmidtwelzow <[email protected]>
Gerrit-Reviewer: Phuedx <[email protected]>
Gerrit-Reviewer: jenkins-bot <>

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

Reply via email to