Improve a bit the code of SpecialAllpages::showChunk()
authorAlexandre Emsenhuber <mediawiki@emsenhuber.ch>
Tue, 13 May 2014 18:33:55 +0000 (20:33 +0200)
committerAlexandre Emsenhuber <mediawiki@emsenhuber.ch>
Tue, 13 May 2014 18:33:55 +0000 (20:33 +0200)
commit3ed642bb1ced2aaae26fa94d45ee75314f02c7f5
tree1eb7d7211207a43ab4e1d6e1b1eff0e22be2369f
parent2e50b896f1a55667ced32502caa9681c36df7587
Improve a bit the code of SpecialAllpages::showChunk()

- Early return when including the page, makes one indentation
  level less for the rest of the method
- Directly put top and bottom links in an array, so that it is
  easier to see where they are going to be displayed
- Group the HTML generation for the top form at the end of the
  method again for better readability

Change-Id: I70c174a4c6363b2303cb5110782c5a3375640f2d
includes/specials/SpecialAllpages.php