MediaWiki  1.28.0
README
Go to the documentation of this file.
1 Don't modify the installer if you want to alter its behavior, including
2 the contents of generated LocalSettings.php in your package. Instead,
3 you can override classes used by the installer.
4 
5 You can override 3 classes:
6 * LocalSettingsGenerator - generates LocalSettings.php
7 * WebInstaller - web installer UI
8 * CliInstaller - command-line installer
9 
10 Example override:
11 
12 $overrides['LocalSettingsGenerator'] = 'MyLocalSettingsGenerator';
13 
14 class 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 }