X-Git-Url: http://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2FGlobalFunctions.php;h=55b78acf532e15f7554970fb847fa36a85ed35aa;hb=8ef70696d8f1fd2687c09b42c62fb9d285cfc78f;hp=51fe1671d41ed5aed0097b17b8a1beee6652d61c;hpb=0e3667be51296aabc342d89844d59641d7fb2361;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/GlobalFunctions.php b/includes/GlobalFunctions.php index 51fe1671d4..55b78acf53 100644 --- a/includes/GlobalFunctions.php +++ b/includes/GlobalFunctions.php @@ -334,6 +334,7 @@ function wfUrlencode( $s ) { static $needle; if ( is_null( $s ) ) { + // Reset $needle for testing. $needle = null; return ''; } @@ -2657,8 +2658,8 @@ function wfGetDB( $db, $groups = [], $wiki = false ) { /** * Get a load balancer object. * - * @deprecated since 1.27, use MediaWikiServices::getDBLoadBalancer() - * or MediaWikiServices::getDBLoadBalancerFactory() instead. + * @deprecated since 1.27, use MediaWikiServices::getInstance()->getDBLoadBalancer() + * or MediaWikiServices::getInstance()->getDBLoadBalancerFactory() instead. * * @param string|bool $wiki Wiki ID, or false for the current wiki * @return \Wikimedia\Rdbms\LoadBalancer @@ -2675,7 +2676,7 @@ function wfGetLB( $wiki = false ) { /** * Get the load balancer factory object * - * @deprecated since 1.27, use MediaWikiServices::getDBLoadBalancerFactory() instead. + * @deprecated since 1.27, use MediaWikiServices::getInstance()->getDBLoadBalancerFactory() instead. * * @return \Wikimedia\Rdbms\LBFactory */