Allow specifying a random page only in main namespace
authorBrian Wolff <bawolff+wn@gmail.com>
Fri, 20 Jun 2014 14:38:22 +0000 (11:38 -0300)
committerLegoktm <legoktm.wikipedia@gmail.com>
Thu, 24 Jul 2014 02:26:21 +0000 (02:26 +0000)
commit77cfbb888ecdd84809dcebbc02acc3fa44264495
tree6be31b1e89902179b6f1a47a41cf24321abb73ca
parent77b5a3573fcea541bfcb0b16ddc08f3138f7535e
Allow specifying a random page only in main namespace

Make Special:Random/ get you a page in NS_MAIN. Previously it
got a page in the content namespaces. Special:Random (no /) still
returns pages from all content namespaces.

This also affects Special:RandomRootPage from the RandomRootPage
extension.

Bug: 46420
Change-Id: I9ce66b534b86eaa09236dd56dab7ac18d1ef37ec
includes/specials/SpecialRandompage.php