[Mediawiki-l] Tweaking Random Articles Button in Monobook

Brion Vibber brion at wikimedia.org
Thu Dec 25 00:06:33 UTC 2008


On 12/24/08 4:42 AM, Platonides wrote:
> My bad, the page_restrictions table is used instead.
> You will need to edit the SQL at includes/specials/SpecialRandompage.php
> to perform the JOIN :/

If your MySQL server is 4.1 or later you should be able to get away with 
something like this:

$wgExtraRandompageSQL = '(select count(*) from page_restrictions where 
pr_page=page_id and pr_type="edit")';

-- brion



More information about the MediaWiki-l mailing list