MediaWiki REL1_27
README
Go to the documentation of this file.
1Don't modify the installer if you want to alter its behavior, including
2the contents of generated LocalSettings.php in your package. Instead,
3you can override classes used by the installer.
4
5You can override 3 classes:
6* LocalSettingsGenerator - generates LocalSettings.php
7* WebInstaller - web installer UI
8* CliInstaller - command line installer
9
10Example override:
11
12$overrides['LocalSettingsGenerator'] = 'MyLocalSettingsGenerator';
13
14class MyLocalSettingsGenerator extends LocalSettingsGenerator {
15 function getText() {
16 // Modify an existing setting
17 $this->values['wgDefaultSkin'] = 'vector';
18 // add a new setting
19 $ls = parent::getText();
20 return $ls . "\n\$wgMiserMode = true;\n";
21 }
22}