Page MenuHomePhabricator

Add option to install the ParserFunctions extension in the installation script
Closed, ResolvedPublic

Description

Author: skizzerz

Description:
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 :)


Version: 1.12.x
Severity: enhancement

Attached:

Details

Reference
bz12421

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 9:55 PM
bzimport set Reference to bz12421.
bzimport added a subscriber: Unknown Object (MLST).

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.

skizzerz wrote:

*** This bug has been marked as a duplicate of bug 10596 ***