Opas:CommonSettings.php

From mediawiki.org
This page is a translated version of the page Manual:CommonSettings.php and the translation is 58% complete.

Jotkut wikitilat käyttävät tiedostoa CommonSettings.php sisältämään asetuksia, jotka ovat yhteisiä kaikille kyseisen wikitilan wikeille. Since config files are arbitrary php files, you can split up your config files into as many separate config files as you want, and potentially reuse portions among multiple wikis. The Wikimedia Foundation uses a file called CommonSettings.php for settings that are common to all of its wikis.

Mahdollinen asennus

  1. Luo tiedosto CommonSettings.php merkityksellisillä yhteisillä asetuksilla.
  1. In all of the affected wikis' LocalSettings.php files, add:
require_once("<path to your CommonSettings.php>/CommonSettings.php");

$wgConf may prove to be useful on such a configuration file.

Katso myös

Aiheesta muualla