HTMLForm: Move section formatting OOUI-specific code to OOUIHTMLForm
authorBartosz Dziewoński <matma.rex@gmail.com>
Tue, 28 Jul 2015 22:05:08 +0000 (00:05 +0200)
committerJforrester <jforrester@wikimedia.org>
Fri, 21 Aug 2015 18:49:38 +0000 (18:49 +0000)
commit40abd65b24da7bc47f59b6814db8d3970c28cc1f
tree51576f428bc87831e9f3d3b8ef1e0a169230b230
parent305d6b2061f9f432901e36b5bd99cfeddfb1c79e
HTMLForm: Move section formatting OOUI-specific code to OOUIHTMLForm

* Introduce a new helper function formatSection() and override it
  in OOUIHTMLForm.
  * Bonus: Properly construct the form's FieldsetLayout,
    thanks to I860a96858c4fcac62d63b46e35a9153f22c0a9c9.
  * Bonus: Don't pass silly HTMLForm's classes which don't make
    sense in OOUI mode.

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