Last modified: 2008-10-20 22:04:41 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.
Applied in r42278.