ApiQueryWatchlist: Handle empty wltypes
[mediawiki.git] / mw-config / overrides / README
blob9a9d84db2f89a246df98d35c7094eb515745b582
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.
5 You can override 3 classes:
6 * LocalSettingsGenerator - generates LocalSettings.php
7 * WebInstaller - web installer UI
8 * CliInstaller - command-line installer
10 Example override:
12 $overrides['LocalSettingsGenerator'] = 'MyLocalSettingsGenerator';
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         }