Manual:DefaultSettings.php

From Linux Web Expert

The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

DefaultSettings.php to pozostałość po pliku zawierającym dawniej domyślne ustawienia konfiguracyjne. Currently default settings are stored in MainConfigSchema.php .

DefaultSettings.php nie powinien być edytowany. Zmiany w nim zostaną utracone, kiedy MediaWiki będzie aktualizowane. Zmiany konfiguracji powinny być dokonywane w pliku LocalSettings.php .

Od MediaWiki 1.38, dołączenie DefaultSettings.php w LocalSettings.php będzie skutkowało błędem opisanym w 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