From: Kunal Mehta Date: Sat, 24 Jun 2017 00:37:31 +0000 (-0700) Subject: Parser: Emit deprecation warnings for ParserLimitReport hook X-Git-Tag: 1.31.0-rc.0~2896^2 X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=commitdiff_plain;h=613ae1c3f205cbcf71e82982c94a18044bb7881f Parser: Emit deprecation warnings for ParserLimitReport hook Change-Id: I351f0867132acf8d5cc9ee51b575744445b28b77 --- diff --git a/includes/parser/Parser.php b/includes/parser/Parser.php index d8722bac5b..5256733ee9 100644 --- a/includes/parser/Parser.php +++ b/includes/parser/Parser.php @@ -550,7 +550,8 @@ class Parser { // Since we're not really outputting HTML, decode the entities and // then re-encode the things that need hiding inside HTML comments. $limitReport = htmlspecialchars_decode( $limitReport ); - Hooks::run( 'ParserLimitReport', [ $this, &$limitReport ] ); + // Run deprecated hook + Hooks::run( 'ParserLimitReport', [ $this, &$limitReport ], '1.22' ); // Sanitize for comment. Note '‐' in the replacement is U+2010, // which looks much like the problematic '-'.