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

Change subject: Replace wfBaseConvert with Wikimedia\base_convert
......................................................................


Replace wfBaseConvert with Wikimedia\base_convert

Change-Id: I5b18ac39fb0e66e19ec536c6a312cbec95167694
---
M specials/SpecialCheckUser.php
1 file changed, 3 insertions(+), 3 deletions(-)

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



diff --git a/specials/SpecialCheckUser.php b/specials/SpecialCheckUser.php
index 437fb85..8bff1c6 100644
--- a/specials/SpecialCheckUser.php
+++ b/specials/SpecialCheckUser.php
@@ -621,7 +621,7 @@
                                        $ip = substr( $row->cuc_ip_hex, 3 );
                                        $ip = IP::HextoOctet( $ip );
                                } else {
-                                       $ip = long2ip( wfBaseConvert( 
$row->cuc_ip_hex, 16, 10, 8 ) );
+                                       $ip = long2ip( Wikimedia\base_convert( 
$row->cuc_ip_hex, 16, 10, 8 ) );
                                }
                                $s .= '<li><a href="' .
                                        htmlspecialchars( 
$this->getPageTitle()->getLocalURL( array(
@@ -915,9 +915,9 @@
                                # Convert the IP hexes into normal form
                                if ( strpos( $row->cuc_ip_hex, 'v6-' ) !== 
false ) {
                                        $ip = substr( $row->cuc_ip_hex, 3 );
-                                       $ip = IP::HextoOctet( $ip );
+                                       $ip = IP::hexToOctet( $ip );
                                } else {
-                                       $ip = long2ip( wfBaseConvert( 
$row->cuc_ip_hex, 16, 10, 8 ) );
+                                       $ip = long2ip( Wikimedia\base_convert( 
$row->cuc_ip_hex, 16, 10, 8 ) );
                                }
                                $s .= '<li><a href="' .
                                        htmlspecialchars( 
$this->getPageTitle()->getLocalURL( array(

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

Gerrit-MessageType: merged
Gerrit-Change-Id: I5b18ac39fb0e66e19ec536c6a312cbec95167694
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/CheckUser
Gerrit-Branch: master
Gerrit-Owner: Reedy <[email protected]>
Gerrit-Reviewer: Aaron Schulz <[email protected]>
Gerrit-Reviewer: Legoktm <[email protected]>
Gerrit-Reviewer: jenkins-bot <>

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

Reply via email to