Last modified: 2013-01-10 10:44:42 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T12596, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 10596 - Please let installer auto-enable extensions bundled in a MediaWiki tarball
Please let installer auto-enable extensions bundled in a MediaWiki tarball
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
Installer (Other open bugs)
unspecified
All All
: Normal enhancement (vote)
: ---
Assigned To: Nobody - You can work on this!
: patch, patch-need-review
: 12421 (view as bug list)
Depends on: 20628
Blocks: 31279 9034
  Show dependency treegraph
 
Reported: 2007-07-15 22:47 UTC by Jason Spiro
Modified: 2013-01-10 10:44 UTC (History)
3 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments
Patch to allow install script to install extensions (3.28 KB, patch)
2007-12-27 18:17 UTC, Christian Neubauer
Details
Sample config.php file (630 bytes, application/x-httpd-php)
2007-12-27 18:18 UTC, Christian Neubauer
Details

Description Jason Spiro 2007-07-15 22:47:32 UTC
It would be great if, when someone includes extensions inside a MediaWiki tarball, then MediaWiki could install them when users run the config process.
Comment 1 Christian Neubauer 2007-12-27 18:17:36 UTC
Created attachment 4478 [details]
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(
    'name' => '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.
Comment 2 Christian Neubauer 2007-12-27 18:18:38 UTC
Created attachment 4479 [details]
Sample config.php file
Comment 3 Ryan Schmidt 2007-12-27 18:40:48 UTC
*** Bug 12421 has been marked as a duplicate of this bug. ***
Comment 4 Christian Neubauer 2008-01-18 14:24:47 UTC
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.
Comment 5 Chad H. 2010-05-10 16:58:15 UTC
This is done with the new-installer being merged in r66008.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links