aboutsummaryrefslogtreecommitdiffstats
path: root/includes/BootstrapHelperFunctions.php
Commit message (Collapse)AuthorAgeFilesLines
* Setup.php: clarify the use of $IP.daniel2022-05-031-2/+33
| | | | | | | The global variable $IP has been replaced by the MW_INSTALL_PATH constant. Clarify the continued use of $IP on Setup.php. Change-Id: I157abfd9049fb8382da53005a084ab86f47e8d8a
* installer: Simplify wfDetectLocalSettingsFile and document gotchassTimo Tijhof2022-03-011-27/+23
| | | | | | | | | | | | | | | | | Follows-up I7747f83481cb05a6d. While at it: * Avoid confusing preg_match, use strpos or str_contains instead. If this is not the same, then I have proven my point that it is unclear (but also picked the wrong alternative). * Use silence operator (at) instead of AtEase. Also note that in the previous change this was incorrectly expanded to silence errors in wfDetectLocalSettingsFile, which I assume was unintentional and among the reasons we avoid it in new code (T253461). Change-Id: I0dda95d3c0f21c872e43697acba192d6a19fb0d5
* Allow main settings file to be selected via env variable.daniel2022-02-061-0/+51
This allows a file other than LocalSettings.php to be used as the primary settings file by setting the MW_CONFIG_FILE environment variable. This also allows the primary settings file to use YAML or JSON format. Using static configuration files should be the default in the future. However, YAML files in the document root could easily be exposed to the public. Better not to encourage that, and require them to be enabled explicitly and loaded from a different place. Bug: T294750 Change-Id: I7747f83481cb05a6d05f819be652259951183819