HTMLForm: Do not generate wrappers for empty sections
authorBartosz Dziewoński <matma.rex@gmail.com>
Fri, 15 Sep 2017 20:26:11 +0000 (22:26 +0200)
committerBartosz Dziewoński <matma.rex@gmail.com>
Sat, 16 Sep 2017 13:23:46 +0000 (15:23 +0200)
commit7bee1a23046981c9bb34730f2af60364e5e268c9
tree1bbb0b8832410abce21d863e57f35c90b40d64c3
parent51a4c783e8900fdfabc353573991367ab63e11cf
HTMLForm: Do not generate wrappers for empty sections

This affects Special:Preferences, where there will no longer be an
empty <table class="mw-htmlform-nolabel"><tbody></tbody></table>
after every toplevel section heading.

Change-Id: Icb6fe957024843f2b08720715054b9afb657f395
includes/htmlform/HTMLForm.php
includes/htmlform/OOUIHTMLForm.php