aboutsummaryrefslogtreecommitdiffstats
path: root/includes/registration/MissingExtensionException.php
Commit message (Collapse)AuthorAgeFilesLines
* Add MediaWiki\Registration namespace to registration classesEbrahim Byagowi2024-08-101-0/+8
| | | | | Bug: T353458 Change-Id: Ifa3b6a6e0353bb4ce21a3f4456f1fc696c8d377c
* Add namespace to the root classes of ObjectCacheEbrahim Byagowi2024-07-101-0/+1
| | | | | | | | | And deprecated aliases for the the no namespaced classes. ReplicatedBagOStuff that already is deprecated isn't moved. Bug: T353458 Change-Id: Ie01962517e5b53e59b9721e9996d4f1ea95abb51
* Use typed properties in MissingExtensionExceptionDoğu Abaris2024-04-011-9/+5
| | | | | | | | Introduce typed properties for $isSkin, $extName, $path, and $error in MissingExtensionException, eliminating docblock annotations for a cleaner and type-safe codebase. Change-Id: I8e05245da1eb0952a8adf28b64ab72f5a0ecfdfb
* Replace substr with cleaner string methodsMatěj Suchánek2023-05-201-1/+1
| | | | | | | | | | Use str_starts_with, str_ends_with or string offset where appropriate. This fixes a bug in MimeAnalyzer where the "UTF-16LE" header could not be identified because of wrong constant. This is the exact type of bug that the new functions can avoid. Change-Id: I9f30881e7e895f011db29cf5dcbe43bc4f341062
* registration: Improve docs and add `ingroup` tagsTimo Tijhof2023-03-241-4/+6
| | | | | | | | | | | | | | | Follows-up I4ed0d333d57626d05. * Clean up the file header, similar to other commits under <https://gerrit.wikimedia.org/r/q/message:ingroup+owner:Krinkle>. * Describe the class on the first "brief" line as to-the-point as possible. * Group the classes in the registration/ component together and link the architecture document, akin to ResourceLoader. Change-Id: I67e6dc9ce7cfb98dfd30007584bb9e97ff817370
* registration: Add a friendly error message for missing extensionBrian Wolff2023-03-151-0/+124
Based on Project:Support_desk, this seems to be a very common error. Many more novice users seem to get confused by the technical message involving "stat failed". Given that this might be the first user's first experience with MW, I think its prudent to make it friendly as possible. This error message does not do i18n. I didn't do i18n to avoid dependencies on MW stuff as it is very early in the setup process, exceptions aren't usually i18n'd, and its entirely possible that this error happens before a language is even set. This does not respect $wgShowExceptionDetails. I think that can be justified because this error happens during setup and not during normal operation and there would be no user controlled values in the backtrace just paths. Bug: T321363 Change-Id: I4ed0d333d57626d05c361d08f1bf4a919115d550