From 0fdbc9890f8319d7b060a77d222af4fbf2e69eef Mon Sep 17 00:00:00 2001 From: Brad Jorsch Date: Wed, 10 Oct 2018 13:08:31 -0400 Subject: [PATCH] Hard-deprecate hooks APIGetDescription and APIGetParamDescription Deprecated since MW 1.25. Change-Id: Idf376b64490eaf8cf5a1b5c3a807fe74b3c2852c Depends-On: I0bc394f11fda5f0118904756b99f1681897cd6fd --- includes/api/ApiBase.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 = []; -- 2.20.1