https://bugzilla.wikimedia.org/show_bug.cgi?id=40159
Dereckson <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |[email protected] --- Comment #1 from Dereckson <[email protected]> 2012-09-12 13:42:50 UTC --- Thank you for your bug report. [ Current code analysis ] In the extension, the {{#babel}} is currently a tag to render. This uses setFunctionHook - https://www.mediawiki.org /wiki/Manual:Parser_functions#The_setFunctionHook_hook - and create needed categories. The rendering operation is done in Babel::Render static method (Babel.class.php). This method calls mGenerateCategories, which calls twice BabelAutoCreate::create to create relevant code and code/level categories. [ Solutions to fix this ] 1. Check $parser->mOptions->mIsPreview in Render() and add a automatic categories creation parameter to mGenerateCategories method (gerrit change 23508) 2. Consider having an empty category isn't an issue (-> RESO WONTFIX) 3. Add an option to let configure if we want or not the category automatic creation at preview time. [ Side effect ] User could want to create categories themselves in preview mode, if they see them not existent, or could avoid the code, being afraid this is wrong. -- Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug. You are on the CC list for the bug. _______________________________________________ Wikibugs-l mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/wikibugs-l
