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

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T14964, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 12964 - AdvancedRandom does not work
AdvancedRandom does not work
Status: RESOLVED FIXED
Product: MediaWiki extensions
Classification: Unclassified
AdvancedRandom (Other open bugs)
unspecified
All All
: Normal normal (vote)
: ---
Assigned To: Nobody - You can work on this!
: patch
Depends on:
Blocks:
  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: ---


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

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.


Navigation
Links