Page MenuHomePhabricator

Please let installer auto-enable extensions bundled in a MediaWiki tarball
Closed, ResolvedPublic

Description

Author: jasonspiro4

Description:
It would be great if, when someone includes extensions inside a MediaWiki tarball, then MediaWiki could install them when users run the config process.


Version: unspecified
Severity: enhancement

Details

Reference
bz10596

Event Timeline

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

Patch to allow install script to install extensions

This patch allows extensions to be installed by the install script. To configure your extension for installation, create a file called /extensions/config.php and add some content like this:

<?php
$extension_config = array();

$extension_config[] = array(

>ParserFunctions
'label' => 'Parser Functions',
'description' => 'You may choose to install the <a href="http://meta.wikimedia.org/wiki/Help:ParserFunctions">ParserFunctions</a> extension by enabling this option. The ParserFunctions extension is installed on all Wikimedia Foundation wikis (such as the Wikipedia), and installing them allows more flexible control over page output.',
'file' => 'ParserFunctions/ParserFunctions.php', # the location of the file in the extensions directory
'config' => '', # extra stuff for LocalSettings like global variables
'download' => 'http://meta.wikimedia.org/wiki/Help:ParserFunctions'

);

The install script reads this file and gives the user the option to enable extensions defined here. The name, label, and file fields are required. The installation process will comment out extensions that can't be found at the given path. Ideally during the install process the installer would attempt to go get the extension from the download link and install it for the user.

Attached:

Sample config.php file

Attached:

skizzerz wrote:

*** Bug 12421 has been marked as a duplicate of this bug. ***

Seeing as how this might not be included in the core any time soon, I made the patch into more of an extension to the installer. See http://www.mediawiki.org/wiki/Extension:ExtensionInstaller.

This is done with the new-installer being merged in r66008.