README 698 B

1234567891011121314151617181920212223
  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. You can override 3 classes:
  5. * LocalSettingsGenerator - generates LocalSettings.php
  6. * WebInstaller - web installer UI
  7. * CliInstaller - command-line installer
  8. Example override:
  9. $overrides['LocalSettingsGenerator'] = 'MyLocalSettingsGenerator';
  10. class MyLocalSettingsGenerator extends LocalSettingsGenerator {
  11. function getText() {
  12. // Modify an existing setting
  13. $this->values['wgDefaultSkin'] = 'vector';
  14. // add a new setting
  15. $ls = parent::getText();
  16. return $ls . "\n\$wgMiserMode = true;\n";
  17. }
  18. }