Open reedy opened 3 years ago
Hi Sam. Thanks for doing this. Think there's a syntax error on line 2323 of Wiki.php though. Should read $tokens['query']['tokens'] (to reflect the usse of the new query API).
It's not a syntax error if it's syntactically valid ;).
Also, it would've worked fine. It just looked a bit odd
Actually, no.. It was right the first time
Are you sure? It doesn't work for me. I get "Notice: Undefined index: tokens in /data/project/jarry-common/public_html/peachy/Includes/Wiki.php on line 2323" followed by "Warning: Invalid argument supplied for foreach() in /data/project/jarry-common/public_html/peachy/Includes/Wiki.php on line 2323" followed by "Error retrieving userrights token...". Whereas if I make the change it works perfectly. This is on en.wp.
Edit: Or perhaps we are using different apiQuery functions
Closes https://github.com/MW-Peachy/Peachy/issues/120