Skip to content

Github mirror of "bluespice/mw-config/overrides" - our actual code is hosted with Gerrit (please see https://www.mediawiki.org/wiki/Developer_access for contributing)

Notifications You must be signed in to change notification settings

wikimedia/bluespice-mw-config-overrides

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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";
	}
}

About

Github mirror of "bluespice/mw-config/overrides" - our actual code is hosted with Gerrit (please see https://www.mediawiki.org/wiki/Developer_access for contributing)

Resources

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published