Last modified: 2008-10-20 22:04:41 UTC

Wikimedia Bugzilla is closed!

Wikimedia has migrated from Bugzilla to Phabricator. Bug reports should be created and updated in Wikimedia Phabricator instead. Please create an account in Phabricator and add your Bugzilla email address to it.
Wikimedia Bugzilla is read-only. If you try to edit or create any bug report in Bugzilla you will be shown an intentional error message.
In order to access the Phabricator task corresponding to a Bugzilla report, just remove "static-" from its URL.
You could still run searches in Bugzilla or access your list of votes but bug reports will obviously not be up-to-date in Bugzilla.
Bug 12964 - AdvancedRandom does not work
AdvancedRandom does not work
Product: MediaWiki extensions
Classification: Unclassified
AdvancedRandom (Other open bugs)
All All
: Normal normal (vote)
: ---
Assigned To: Nobody - You can work on this!
: patch
Depends on:
  Show dependency treegraph
Reported: 2008-02-08 00:00 UTC by Lejonel
Modified: 2008-10-20 22:04 UTC (History)
1 user (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---

Fix parameter, and add query for templatelinks (2.68 KB, patch)
2008-02-08 00:00 UTC, Lejonel

Description Lejonel 2008-02-08 00:00:28 UTC
Created attachment 4631 [details]
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.
Comment 1 Siebrand Mazeland 2008-10-20 22:04:23 UTC
Applied in r42278.

Note You need to log in before you can comment on or make changes to this bug.