X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2FGlobalFunctions.php;h=1d61996f79759ee24a09d73beca30a01d3207f60;hb=a6abe2ad7a1ed2c8dd29f35a9f6c40f85e12b7ab;hp=884c3f0f80652288571879b5465ef4da660ca44c;hpb=bed43f525501ddf80995daa8e406414500ce3d1d;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/GlobalFunctions.php b/includes/GlobalFunctions.php index 884c3f0f80..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 * @@ -3052,7 +3028,8 @@ function wfWaitForSlaves( } try { - wfGetLBFactory()->waitForReplication( [ + $lbFactory = MediaWikiServices::getInstance()->getDBLoadBalancerFactory(); + $lbFactory->waitForReplication( [ 'wiki' => $wiki, 'cluster' => $cluster, 'timeout' => $timeout, @@ -3527,19 +3504,3 @@ function wfGetRusage() { return getrusage( 0 /* RUSAGE_SELF */ ); } } - -/** - * Begin profiling of a function - * @param string $functionname Name of the function we will profile - * @deprecated since 1.25 - */ -function wfProfileIn( $functionname ) { -} - -/** - * Stop profiling of a function - * @param string $functionname Name of the function we have profiled - * @deprecated since 1.25 - */ -function wfProfileOut( $functionname = 'missing' ) { -}