From c48f489ba6246d2251d934552cd8a6050dff8a85 Mon Sep 17 00:00:00 2001 From: Jayprakash12345 <0freerunning@gmail.com> Date: Fri, 9 Mar 2018 13:06:58 +0000 Subject: [PATCH] Remove deprecated function wfBaseConvert() Bug: T189300 Change-Id: I5f05beb105dca8e8079e770df562c004a689c2ed --- RELEASE-NOTES-1.31 | 2 ++ includes/GlobalFunctions.php | 24 ------------------------ 2 files changed, 2 insertions(+), 24 deletions(-) diff --git a/RELEASE-NOTES-1.31 b/RELEASE-NOTES-1.31 index 557760d04b..7b2ece99b5 100644 --- a/RELEASE-NOTES-1.31 +++ b/RELEASE-NOTES-1.31 @@ -291,6 +291,8 @@ changes to languages because of Phabricator reports. written using square brackets will get the class "text" not "free". * OpenSearch::getOpenSearchTemplate(), deprecated in 1.25, has been removed. You can use ApiOpenSearch::getOpenSearchTemplate() instead. +* The global function wfBaseConvert, deprecated in 1.27, has been removed. Use + Wikimedia\base_convert() directly. == Compatibility == MediaWiki 1.31 requires PHP 5.5.9 or later. Although HHVM 3.18.5 or later is supported, diff --git a/includes/GlobalFunctions.php b/includes/GlobalFunctions.php index 9cebf7e50f..1d61996f79 100644 --- a/includes/GlobalFunctions.php +++ b/includes/GlobalFunctions.php @@ -2686,30 +2686,6 @@ function wfRelativePath( $path, $from ) { return implode( DIRECTORY_SEPARATOR, $pieces ); } -/** - * Convert an arbitrarily-long digit string from one numeric base - * to another, optionally zero-padding to a minimum column width. - * - * Supports base 2 through 36; digit values 10-36 are represented - * as lowercase letters a-z. Input is case-insensitive. - * - * @deprecated since 1.27 Use Wikimedia\base_convert() directly - * - * @param string $input Input number - * @param int $sourceBase Base of the input number - * @param int $destBase Desired base of the output - * @param int $pad Minimum number of digits in the output (pad with zeroes) - * @param bool $lowercase Whether to output in lowercase or uppercase - * @param string $engine Either "gmp", "bcmath", or "php" - * @return string|bool The output number as a string, or false on error - */ -function wfBaseConvert( $input, $sourceBase, $destBase, $pad = 1, - $lowercase = true, $engine = 'auto' -) { - wfDeprecated( __FUNCTION__, '1.27' ); - return Wikimedia\base_convert( $input, $sourceBase, $destBase, $pad, $lowercase, $engine ); -} - /** * Reset the session id * -- 2.20.1