Don't apply CSS columns if less than 3 results were found on AllPages & PrefixIndex
authorGlaisher <glaisher.wiki@gmail.com>
Mon, 9 Nov 2015 16:50:53 +0000 (21:50 +0500)
committerGlaisher <glaisher.wiki@gmail.com>
Mon, 9 Nov 2015 17:28:37 +0000 (22:28 +0500)
commit0968cce3f78b81dc32b0db097b5a6a61fffc5ce9
treead715e33148462afc0acb665ab2f9f2bc8e02747
parentcfdf523008736d6ec9b8a7b512ea7f204ac54afb
Don't apply CSS columns if less than 3 results were found on AllPages & PrefixIndex

If there are less than 3 entries, the browser still tries to render as it would
appear as if there are 3 columns, so the final rendering is broken. So don't apply
CSS columns and just show a normal list if there are less than 3 results. This also
matches the behavior of CategoryViewer.

Bug: T117887
Change-Id: Ie6ac0e1174ff8cc14008f39a91c95bcd6f616353
includes/specials/SpecialAllPages.php
includes/specials/SpecialPrefixindex.php
tests/parser/parserTests.txt