From: Umherirrender Date: Fri, 14 Apr 2017 21:42:15 +0000 (+0200) Subject: Add grep infos to Parser::getImageParams X-Git-Tag: 1.31.0-rc.0~3507^2 X-Git-Url: http://git.cyclocoop.org/?a=commitdiff_plain;h=bf51e3542bb7475c037c1390ce77a497a98759a4;p=lhc%2Fweb%2Fwiklou.git Add grep infos to Parser::getImageParams Comments for grep makes searching easier Change-Id: I98e93baf6bd89df36185d535d6e63c51c6f65bc9 --- diff --git a/includes/parser/Parser.php b/includes/parser/Parser.php index 953f021c2b..19f368a6cd 100644 --- a/includes/parser/Parser.php +++ b/includes/parser/Parser.php @@ -5141,6 +5141,11 @@ class Parser { $internalParamMap = []; foreach ( $internalParamNames as $type => $names ) { foreach ( $names as $name ) { + // For grep: img_left, img_right, img_center, img_none, + // img_baseline, img_sub, img_super, img_top, img_text_top, img_middle, + // img_bottom, img_text_bottom, + // img_thumbnail, img_manualthumb, img_framed, img_frameless, img_upright, + // img_border, img_link, img_alt, img_class $magicName = str_replace( '-', '_', "img_$name" ); $internalParamMap[$magicName] = [ $type, $name ]; }