Last modified: 2007-12-27 18:40:48 UTC
Created attachment 4472 [details]
Adds option to install ParserFunctions in /config/index.php
The attached patch adds a toggle which allows users to install the ParserFunctions extension while installing MediaWiki (does ''not'' get installed by default). Of course, this requires that the ParserFunctions extension be shipped with the MediaWiki code (in /extensions/ParserFunctions), but that's probably not much of an issue.
The reasoning behind creating this patch is that many people copy advanced templates and such from Wikimedia Foundation wikis (such as English Wikipedia), and most of those templates use ParserFunctions. Therefore, shipping this extension with the core and adding an option to include it during MediaWiki installation saves the user from trying to figure out what they're missing when stuff starts breaking, and/or saves the user from having to upload and install the extension themselves.
And I'll say it again... If you decide to implement this into the installation script, please remember to ship out the ParserFunctions extension along with the core code (put it in /extensions/ParserFunctions). Fatal errors aren't really nice :)
I modified your patch to read from a config file and install any extensions described in it. I also added some checking to make sure the extension file exists. The patch is comment #1 on 10596.
*** This bug has been marked as a duplicate of bug 10596 ***