Add grep infos to Parser::getImageParams
authorUmherirrender <umherirrender_de.wp@web.de>
Fri, 14 Apr 2017 21:42:15 +0000 (23:42 +0200)
committerUmherirrender <umherirrender_de.wp@web.de>
Fri, 14 Apr 2017 21:42:15 +0000 (23:42 +0200)
Comments for grep makes searching easier

Change-Id: I98e93baf6bd89df36185d535d6e63c51c6f65bc9

includes/parser/Parser.php

index 953f021..19f368a 100644 (file)
@@ -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 ];
                                        }