手册:CommonSettings.php

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

一些Wiki农场使用CommonSettings.php文件作为对于该农场所有Wiki均适用的设置。 由于设置文件可以是任意的php文件,只要您愿意,您可以将您的设置分割成多个单独的配置文件,并且有可能在多个wiki中重用这些部分。 维基媒体基金会使用称为CommonSettings.php的文件保存了对于所有wiki都适用的设置。

可能的配置

  1. 创建CommonSettings.php文件,存放相对常用的一些设置。
  2. 所有受影响wiki的LocalSettings.php中,加入:
require_once("<path to your CommonSettings.php>/CommonSettings.php");

$wgConf 在这种配置文件上可能会很有用。

参见

外部链接