aboutsummaryrefslogtreecommitdiffstats
path: root/includes/installer
Commit message (Collapse)AuthorAgeFilesLines
* Localisation updates from https://translatewiki.net.Translation updater bot2025-04-072-9/+6
| | | | Change-Id: I4b171bedf3a9ef1df7bd11f86c5d7404bd695929
* Merge "In .htaccess deny files, use "Satisfy All""jenkins-bot2025-04-041-1/+3
|\
| * In .htaccess deny files, use "Satisfy All"Tim Starling2025-04-041-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | These .htaccess files are intended to prohibit all web access. But if the user sets "Satisfy Any" on a parent directory, in conjunction with any permissive require directive like "Require all granted", access will be allowed despite "Require all denied" in .htaccess. So, override Satisfy so that the "Require all denied" will reliably take effect. Note that "Satisfy All" is the default. This only affects non-default installations. Change-Id: Ia5862fb69e439b7ea2ed7af011e1ebf8f1b1f6d6
* | Localisation updates from https://translatewiki.net.Translation updater bot2025-04-041-0/+6
|/ | | | Change-Id: I030398e0ef3a20be9a0d500b051e2a3d88ecc01f
* Localisation updates from https://translatewiki.net.Translation updater bot2025-04-011-2/+2
| | | | Change-Id: I94adc67717ac66fc655866f4b8d93bcb758eaace
* Merge "installer: Use type declaration on undocumented private functions"jenkins-bot2025-04-0111-12/+13
|\
| * installer: Use type declaration on undocumented private functionsUmherirrender2025-03-3111-12/+13
| | | | | | | | Change-Id: I328e7691cf620ddc9520670826a928a291e0dfe9
* | Localisation updates from https://translatewiki.net.Translation updater bot2025-03-313-4/+7
|/ | | | Change-Id: I2f499c75ce82bd4bb8697b6a950017f0309b2427
* Localisation updates from https://translatewiki.net.Translation updater bot2025-03-281-0/+2
| | | | Change-Id: I617c9421a2991a74f1d7aa3cbe05962e36c99de2
* Localisation updates from https://translatewiki.net.Translation updater bot2025-03-261-0/+2
| | | | Change-Id: Ie5ca65e941487bdd0b16a0e1f840a1b642a0d942
* Namespace all remaining files in includes/exceptionJames D. Forrester2025-03-251-1/+2
| | | | | | | | | In MediaWiki/Exception, to follow PSR-4 per plural vs. singular (this can be changed later if people really care). Also, move the couple of exceptions in here that were already namespaced in the MW-top-level into the new space. Bug: T353458 Change-Id: I12ed850ae99effb699a6d7ada173f54e72f0570e
* rdbms: Require SQLite 3.24+Tim Starling2025-03-181-1/+1
| | | | | | | | Require SQLite 3.24+, released June 2018. Minimum distro releases: Debian 10 (buster), Ubuntu 20.04, Fedora 29. Bug: T389028 Change-Id: I1f548ee162921fa8398740e4b0528703c84bcaa3
* Localisation updates from https://translatewiki.net.Translation updater bot2025-03-173-7/+20
| | | | Change-Id: I9678e4aeed545b40b188ec582f452418d819a70e
* Localisation updates from https://translatewiki.net.Translation updater bot2025-03-122-2/+5
| | | | Change-Id: Id4dce6a1b6c111698a71e5531db33d1f47568e0c
* Localisation updates from https://translatewiki.net.Translation updater bot2025-03-107-2/+13
| | | | Change-Id: Ib9eb4ac69ff3c7361d7873873b02595521a4ddd6
* Localisation updates from https://translatewiki.net.Translation updater bot2025-03-076-1/+12
| | | | Change-Id: Id5b0ff9140433136acad22cf4def5740b583088b
* installer: Allow customisation of $wgServerTim Starling2025-03-046-5/+21
| | | | | | | | | | | | | | | | | | | | | * Add a box to the name page allowing $wgServer to be reviewed and customised. * Stay on the default server for LocalSettings.php download. Just use the customised URL for the "enter your wiki" link. For the Refresh header, use a relative URL, since that is safer. It is a footgun. Ideally there would be client-side validation by fetching a URL. For now, using a relative URL for the LocalSettings download means you can fix LocalSettings by editing it. Also add a little bit of padding between the textbox and the following label so that the grouping is more clear. Remove the <br> from the DBConnect page, otherwise there was excessive whitespace in combination with the new padding. Bug: T2061 Bug: T64950 Change-Id: I23951ac40faeae9447a2feb2bf5861f0bb81f664
* Localisation updates from https://translatewiki.net.Translation updater bot2025-03-031-0/+3
| | | | Change-Id: Ice1b0bef4d9a0162fcd513410aa31d73deb1ec63
* Merge "installer: Migrate web upgrade to the task framework"jenkins-bot2025-02-277-68/+153
|\
| * installer: Migrate web upgrade to the task frameworkTim Starling2025-02-277-68/+153
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Web upgrade was the sole remaining caller of restoreServices(), a method which I accidentally broke. You can't just run RestoredServicesProvider and expect that to work, it has dependencies. The order of operations was also backwards. You need to load extensions before you can reset services, because you need virtual domains from the extension.json files. So: * Port web upgrade to the task framework. * Move the web upgrade part of DatabaseUpdater::loadExtensions() to WebUpgradeExtensionsProvider. * Move the DatabaseUpdater::doUpdates() call from WebInstaller::doUpgrade() to WebUpgradeTask. * Have WebInstaller::doUpgrade() run the two new tasks with RestoredServicesProvider in the middle. Only default virtual domains are used, not remote mappings; this appears to be a pre-existing issue. Bug: T386661 Change-Id: I324fce53d2460b70428115d2b02a31248cc7226e
* | installer: Check whether the data directory is writableTim Starling2025-02-271-1/+1
|/ | | | | | | | Followup to I139036b265716e9898fb76ba907c194f005ea318. If the data directory exists and is not writable, raise an error. Bug: T385122 Change-Id: I9013490f4d57d36ba64d643268718a3fd6f61ff6
* Localisation updates from https://translatewiki.net.Translation updater bot2025-02-261-3/+3
| | | | Change-Id: I357515aef92ea5e98a578a1610113e61785e583a
* Localisation updates from https://translatewiki.net.Translation updater bot2025-02-251-0/+53
| | | | Change-Id: I69472adef5c1d04c7c28679f7c48371f07372f94
* Localisation updates from https://translatewiki.net.Translation updater bot2025-02-242-4/+4
| | | | Change-Id: Id3e5ba20513bcad9b6325503116e35381c3cc6f6
* Localisation updates from https://translatewiki.net.Translation updater bot2025-02-211-6/+7
| | | | Change-Id: I34fd825cb958633503af513192f60721721ec5e8
* Localisation updates from https://translatewiki.net.Translation updater bot2025-02-192-13/+14
| | | | Change-Id: Id17dc2a8d468370ee5398586783103c0df0e6bf5
* Merge "installer: Restore "complete" success message"jenkins-bot2025-02-183-32/+9
|\
| * installer: Restore "complete" success messageTimo Tijhof2025-02-173-32/+9
| | | | | | | | | | | | | | | | | | | | | | * The `<div>` for the download icon was once upon a time styled in an elaborate way, but all this has slowly lost to redesigns. It is now a useless wrapper for an otherwise plain external link, so let's make it just that. Bug: T384524 Change-Id: I433e381eb1f388584e36bbfd2b40665b61ec22eb
* | Merge "installer: Restore success messages"jenkins-bot2025-02-185-12/+28
|\|
| * installer: Restore success messagesTimo Tijhof2025-02-175-12/+28
| | | | | | | | | | Bug: T384524 Change-Id: I688e310ab08d4fb83d5dc47bd1fa79617cead9d3
* | Localisation updates from https://translatewiki.net.Translation updater bot2025-02-172-3/+8
|/ | | | Change-Id: If5c6fb2b3f5a1d6b8d42268305018ff56ea2ed29
* Localisation updates from https://translatewiki.net.Translation updater bot2025-02-141-0/+2
| | | | Change-Id: Ia72373ae6cfd072f3cc9dd2158d620aaaab760f1
* Localisation updates from https://translatewiki.net.Translation updater bot2025-02-131-0/+3
| | | | Change-Id: Ib3a6f4867ed8c51f1e252cd59a8d5bcd21200efa
* Merge "installer: Fix conflation between warning and info messages"jenkins-bot2025-02-133-47/+57
|\
| * installer: Fix conflation between warning and info messagesTimo Tijhof2025-02-133-47/+57
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Fix getInfoBox to not be a warning box, but an information notice like it is intended to be. * Update getInfoBox() to use codex class names, same as showMessage(). * Update getInfoBox() to bold the "Information" title, as per Codex examples and guidelines, e.g. https://doc.wikimedia.org/codex/latest/components/demos/message.html#multiline * Remove infoBox() utility, it was used only once, in getInfoBox(). The `mw-installer-box-*`, `mw-installer-infobox-*` CSS classes are also unusd now, however there is nothing to remove because these were already removed in a previous refactor. * Introduce showWarning(), and apply it to showMessage() calls that convey non-fatal issues. Bug: T384524 Change-Id: I6722346ef81a0a9cf8983153271be579905c7898
* | Merge "Replace call_user_func with dynamic function call"jenkins-bot2025-02-131-1/+1
|\ \
| * | Replace call_user_func with dynamic function callUmherirrender2025-02-131-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | Use modern php syntax to call a callable. Reduce the stack trace to improve performance and better IDE and static analyzer support Change-Id: I9ef131032a662a3b8db69aa7079dbd51f88f575a
* | | Merge "ResourceLoader: Remove module_deps table"jenkins-bot2025-02-134-9/+3
|\ \ \ | |/ / |/| |
| * | ResourceLoader: Remove module_deps tableHannah Okwelum2025-02-134-9/+3
| | | | | | | | | | | | | | | | | | | | | No longer used. see T343492 Bug: T379661 Change-Id: I6b3d51995452f77b5da86b0cf32a23b12c7c669c
* | | Localisation updates from https://translatewiki.net.Translation updater bot2025-02-111-0/+7
| | | | | | | | | | | | Change-Id: Ieda8d483df6c85d6c766414f2e9602f94b9dc85e
* | | Localisation updates from https://translatewiki.net.Translation updater bot2025-02-071-2/+2
| | | | | | | | | | | | Change-Id: Ie305a422133d22a277a432462aa566dd3a876c9b
* | | Localisation updates from https://translatewiki.net.Translation updater bot2025-02-061-0/+2
|/ / | | | | | | Change-Id: I5495becb444413be27e0f2831adddaf5696834a3
* | Merge "Use $string === '' instead of strlen( $string ) === 0"jenkins-bot2025-02-053-4/+4
|\ \
| * | Use $string === '' instead of strlen( $string ) === 0Fomafix2025-01-303-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | Add $string === false or $string === null where $string can have other types than a string. Also document null as possible return value in FileRepo. Change-Id: Iaa29ba01c3fd6bea506debdc6f929edfe881c808
* | | Localisation updates from https://translatewiki.net.Translation updater bot2025-02-031-0/+2
|/ / | | | | | | Change-Id: I95faeed1c284ede36d6e1ca21971a89aaaf79b08
* | Localisation updates from https://translatewiki.net.Translation updater bot2025-01-303-5/+5
| | | | | | | | Change-Id: I9274d156a0d65de6eac9272e50e7db61c8351acd
* | schema: Add cl_target_id and cl_collation_id to categorylinksAmir Sarabadani2025-01-213-0/+7
|/ | | | | | | To normalize cl_to and cl_collation Bug: T299951 Change-Id: If58190f3cc912ffa99c623dc9f51d530d5c87186
* Localisation updates from https://translatewiki.net.Translation updater bot2025-01-201-1/+1
| | | | Change-Id: I9df0c21e9367e7feac1a17d25c2436051132f3d2
* Remove 2-line PHPDocs that just repeat the types from the codethiemowmde2025-01-1710-31/+0
| | | | | | | | | | | | | | | | Same as Ia294bf4 did for 1-line comments. This patch removes slightly more complex 2-line PHPDoc comments that don't add any new information to the code, but literally repeat what the code already says. They say "don't document the code, code the documentation", and we are doing this more and more. We just tend to forget to remove the obsolete comments. Note I'm also removing a line of text in a few cases when it's very short and literally says the same as the method name. Again, such comments add zero new information. Change-Id: I01535404bab458c6c47e48e5456403b7a64198ed
* Remove trivial 1-line PHPDocs that just repeat the codethiemowmde2025-01-166-18/+0
| | | | | | | | | | | | | I assume these are all either auto-generated by an IDE or the language-level type declarations have been added later. In any case the comments don't add any new information to what the code already says. This is just extra clutter that makes the code harder to read, I would argue. There are many, many more comments like this. In this patch I intentionally focus on the most trivial 1-line comments. Change-Id: Ia294bf4ce0d8a77036842fe25884bc175c2b0e7d