Jump to content

Handbuch:$wgLocalDatabases

From mediawiki.org
This page is a translated version of the page Manual:$wgLocalDatabases and the translation is 62% complete.
Datenbank-Einstellungen: $wgLocalDatabases
Weitere Wikis auf dieser Seite, kann von einen einzelnen Entwicklerkonto verwaltet werden.
Eingeführt in Version:1.3.0
Entfernt in Version:Weiterhin vorhanden
Erlaubte Werte:(Array von Strings) - siehe unten
Standardwert:[]

Details

Ein Array von Datenbanknamen. Z.B.,

$wgLocalDatabases = [ 'wikipedia', 'meta', 'news' ];

This is used for e.g. $wgConf (SiteConfiguration). Note that $wgConf->wikis should be the same as $wgLocalDatabases.

It is needed to run a wiki family , for example by using Erweiterung:CentralAuth .

It is also in use by some maintenance scripts like:

User rights on other wikis on this site can be administered from a single developer account (permission: userrights-interwiki).

Fehlerbehebung

For unclear reasons, since this variable is empty as default, some maintenance scripts will do nothing as default. Einige von denen sind:

In fact, these scripts do operations on your "local databases" but $wgDBname is not considered one of them as default. A useful contribution would be to clarify this.

Siehe auch