ChangesListSpecialPage: Don't short-circuit the ChangesList, instead format zero...
authorRoan Kattouw <roan.kattouw@gmail.com>
Wed, 5 Jul 2017 23:41:36 +0000 (16:41 -0700)
committerRoan Kattouw <roan.kattouw@gmail.com>
Wed, 5 Jul 2017 23:52:14 +0000 (16:52 -0700)
commit92fa43d9c2a5ae6b6a2147cfe1a655a7b315a8f5
tree35edcf65bedc7b19445b26e696696a6d2b22c628
parenta13e081132a5718e0a90b756f56786150e735d8f
ChangesListSpecialPage: Don't short-circuit the ChangesList, instead format zero rows

Short-circuiting the ChangesList causes bugs, because it causes
ChangesList::beginRecentChangesList() to be bypassed. This function
adds important styles and RL modules, especially when enhanced RC is enabled.

Instead, fake an empty result and let the ChangesList format it.
This will add styles and modules but otherwise produce no output.
(It does produce an empty div, but the idiosyncratic way in which the
subclasses deal with empty results causes that div not to be output.)

Bug: T169835
Change-Id: Ib831c781f4fe91eef787aef3d17e71780be9da51
includes/specialpage/ChangesListSpecialPage.php