X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=includes%2Fparser%2FParser.php;h=5256733ee987df16ef710b01c13ec46b45731de0;hp=34f62324e076a31b6d1bd9d7af72a955522e2bad;hb=613ae1c3f205cbcf71e82982c94a18044bb7881f;hpb=97d334a0d44785d6087f25bb7ac71d16b9e17aef diff --git a/includes/parser/Parser.php b/includes/parser/Parser.php index 34f62324e0..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 '-'. @@ -4974,6 +4975,7 @@ class Parser { $ig->setContextTitle( $this->mTitle ); $ig->setShowBytes( false ); + $ig->setShowDimensions( false ); $ig->setShowFilename( false ); $ig->setParser( $this ); $ig->setHideBadImages();