Display TemplateData parameter table according to param order

Have the parameter order in the display table appear according to
the paramOrder setting. If the setting isn't explicitly set in the
TemplateData string, the parameters will be in order of appearance.

Change-Id: Ibbd5a7b28f722c51788b9ed0f5ac577902ce4b7a
This commit is contained in:
Moriel Schottlender 2015-02-18 16:53:59 -08:00
parent 985e8b56bf
commit ba0349866f

View file

@ -688,7 +688,8 @@ class TemplateDataBlob {
. '</tr></thead>'
. '<tbody>';
foreach ( $data->params as $paramName => $paramObj ) {
foreach ( $data->paramOrder as $paramName ) {
$paramObj = $data->params->$paramName;
$description = '';
$default = '';