Page MenuHomePhabricator

AdvancedRandom does not work
Closed, ResolvedPublic

Description

Fix parameter, and add query for templatelinks

Advanced random does not work because variable names has been mixed up, $params and $par should be the same variable. I have attached an patch that changes the variable name.

And even when the variables are fixed, it does not work as described in SpecialAdvancedRandom.php:

  • Get a random page from the set of pages whos talk or subjectpage links to a
  • given page, can be used like Special:AdvancedRandom/Template:Featured/Talk
  • to get a random featured article or like
  • Special:AdvancedRandom/Template:Delete to get a random speedy deletion
  • candidate.

Template links are stored in templatelinks table, but the database query only searches the pagelinks table. In the patch I have changed this by quering templatelinks when a template is specified.


Version: unspecified
Severity: normal

Attached:

Details

Reference
bz12964

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 10:02 PM
bzimport set Reference to bz12964.
bzimport added a subscriber: Unknown Object (MLST).