From bf51e3542bb7475c037c1390ce77a497a98759a4 Mon Sep 17 00:00:00 2001 From: Umherirrender Date: Fri, 14 Apr 2017 23:42:15 +0200 Subject: [PATCH] Add grep infos to Parser::getImageParams Comments for grep makes searching easier Change-Id: I98e93baf6bd89df36185d535d6e63c51c6f65bc9 --- includes/parser/Parser.php | 5 +++++ 1 file changed, 5 insertions(+) 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 ]; } -- 2.20.1