X-Git-Url: http://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2FGlobalFunctions.php;h=55b78acf532e15f7554970fb847fa36a85ed35aa;hb=f31b45192ec1385bd9143f23f5147985a9ca6bb6;hp=51fe1671d41ed5aed0097b17b8a1beee6652d61c;hpb=124d8f4b9329f68074634c969f05e7576afe9380;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 */