From: Brad Jorsch Date: Wed, 10 Oct 2018 17:08:31 +0000 (-0400) Subject: Hard-deprecate hooks APIGetDescription and APIGetParamDescription X-Git-Tag: 1.34.0-rc.0~3822^2 X-Git-Url: http://git.cyclocoop.org//%27http:/code.google.com/p/ie7-js//%27?a=commitdiff_plain;h=0fdbc9890f8319d7b060a77d222af4fbf2e69eef;p=lhc%2Fweb%2Fwiklou.git Hard-deprecate hooks APIGetDescription and APIGetParamDescription Deprecated since MW 1.25. Change-Id: Idf376b64490eaf8cf5a1b5c3a807fe74b3c2852c Depends-On: I0bc394f11fda5f0118904756b99f1681897cd6fd --- diff --git a/includes/api/ApiBase.php b/includes/api/ApiBase.php index ac07eebe3b..c2e37e0161 100644 --- a/includes/api/ApiBase.php +++ b/includes/api/ApiBase.php @@ -2247,7 +2247,7 @@ abstract class ApiBase extends ContextSource { // Avoid PHP 7.1 warning of passing $this by reference $apiModule = $this; - Hooks::run( 'APIGetDescription', [ &$apiModule, &$desc ] ); + Hooks::run( 'APIGetDescription', [ &$apiModule, &$desc ], '1.25' ); $desc = self::escapeWikiText( $desc ); if ( is_array( $desc ) ) { $desc = implode( "\n", $desc ); @@ -2337,7 +2337,7 @@ abstract class ApiBase extends ContextSource { // Avoid PHP 7.1 warning of passing $this by reference $apiModule = $this; - Hooks::run( 'APIGetParamDescription', [ &$apiModule, &$desc ] ); + Hooks::run( 'APIGetParamDescription', [ &$apiModule, &$desc ], '1.25' ); if ( !$desc ) { $desc = [];