https://bugzilla.wikimedia.org/show_bug.cgi?id=27757
--- Comment #11 from Reedy <[email protected]> 2011-07-29 14:40:12 UTC --- (In reply to comment #10) > The reason right now they're hardcoded is because by default the hook in that > function expects the get*Token function will get a pageid and title. The point > of this module is to be able to get tokens without needed a page(id), so > unless > we just pass a random page to satisfy tokens it doesn't seem a good idea to > me. > > Maybe we should just restructure the ApiQueryInfo module getToken functions to > not need page info, but that's a bigger task and would warrent developer > consenus. I think Brian is possibly just meaning ApiQueryInfo->getTokenFunctions() So that we're not hardcoding the token types, and keep it somewhat dynamic, so other modules can add their own without having to change the core modules... Having said that, non of the getToken functions actually use either of the parameters.... -- Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. _______________________________________________ Wikibugs-l mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/wikibugs-l
