wiki.techinc.nl/mw-config/overrides
zppix1 7d16ec0619 This changes grammar, spelling and flow of the README
Bug: T141738
Change-Id: I47d4e76d88b32af10805fa5531faf21cb1d8a77c
2016-08-11 01:08:37 +00:00
..
README This changes grammar, spelling and flow of the README 2016-08-11 01:08:37 +00:00

Don't modify the installer if you want to alter its behavior, including
the contents of generated LocalSettings.php in your package. Instead,
you can override classes used by the installer.

You can override 3 classes:
* LocalSettingsGenerator - generates LocalSettings.php
* WebInstaller - web installer UI
* CliInstaller - command-line installer

Example override:

$overrides['LocalSettingsGenerator'] = 'MyLocalSettingsGenerator';

class MyLocalSettingsGenerator extends LocalSettingsGenerator {
	function getText() {
		// Modify an existing setting
		$this->values['wgDefaultSkin'] = 'vector';
		// add a new setting
		$ls = parent::getText();
		return $ls . "\n\$wgMiserMode = true;\n";
	}
}