Manual:DefaultSettings.php
Outdated translations are marked like this.
ficheiro do MediaWiki: DefaultSettings.php | |
---|---|
Localização: | includes/ |
Código fonte: | master • 1.42.3 • 1.41.4 • 1.39.10 |
Classes: | Find code • Find documentation |
DefaultSettings.php contém as definições de configuração predefinidas. Currently default settings are stored in MainConfigSchema.php .
O ficheiro
DefaultSettings.php
nunca deveria ser editado, já que quaisquer alterações efetuadas ao mesmo serão perdidas com cada atualização do MediaWiki. Em vez de isso, as alterações deverão ser efetuadas no ficheiro LocalSettings.php
.As of MediaWiki 1.38, including DefaultSettings.php
in your LocalSettings.php
will result in the error described at T311966:
PHP Fatal error: Uncaught FatalError: $wgBaseDirectory must not be modified in settings files! Use the MW_INSTALL_PATH environment variable to override the installation root directory. in /var/www/html/w/includes/Setup.php:237 Stack trace: #0 /var/www/html/w/maintenance/doMaintenance.php(96): require_once() #1 /var/www/html/w/maintenance/update.php(264): require_once('/var/www/html/w...') #2 {main} thrown in /var/www/html/w/includes/Setup.php on line 237 Fatal error: Uncaught FatalError: $wgBaseDirectory must not be modified in settings files! Use the MW_INSTALL_PATH environment variable to override the installation root directory. in /var/www/html/w/includes/Setup.php:237 Stack trace: #0 /var/www/html/w/maintenance/doMaintenance.php(96): require_once() #1 /var/www/html/w/maintenance/update.php(264): require_once('/var/www/html/w...') #2 {main} thrown in /var/www/html/w/includes/Setup.php on line 237