aboutsummaryrefslogtreecommitdiffstats
path: root/includes/export/BaseDump.php
Commit message (Collapse)AuthorAgeFilesLines
* Update name & email for bvibberBrooke Vibber2024-02-081-1/+1
| | | | | | | | | | | | | Updating name & email addresses for Brooke Vibber. Re-ran updateCredits.php as well so there are some new entries in there as well. There are a couple of files in resources/libs that will have to be changed upstream to keep tests happy, I will do patches later. :D Change-Id: I2f2e75d3fa42e8cf6de19a8fbb615bac28efcd54
* Merge sequences of `if` that end doing the same thing anywaythiemowmde2023-06-161-4/+3
| | | | | | | | | Motivation: * Avoid code duplication. * Hopefully make it easier to read. * Also order stuff from cheap to expensive, if possible. Change-Id: I575e3f2027ce60a0d0885be5b9bd3e07bc035eee
* Check return value of XMLReader::openUmherirrender2022-11-181-4/+11
| | | | Change-Id: I623aa515d21726fa201c0bc49ab7c370f72b71ec
* Fix various documentation related to null typesUmherirrender2022-02-261-2/+2
| | | | | | | | The functions returning null or the class property is set explict null Found by phan strict checks Change-Id: I4a271093fb6526564d8083a08249c64cb21f2453
* Improve and add documentation to import/export related classesUmherirrender2021-02-011-1/+12
| | | | Change-Id: Ib2a74c1ac1a1902341e289961f4c1aa4dadd4bd8
* make prefetch for dumps work with large revisions for multiple filesAriel T. Glenn2020-07-131-1/+1
| | | | | Bug: T213405 Change-Id: Id8a08aad3e597b9548ae36f1b1564c51ac6346ad
* Remove terminating line breaks from debug messagesTim Starling2020-06-031-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | A terminating line break has not been required in wfDebug() since 2014, however no migration was done. Some of these line breaks found their way into LoggerInterface::debug() calls, where they mess up the formatting of the debug log. So, remove terminating line breaks from wfDebug() and LoggerInterface::debug() calls. Also: * Fix the stripping of leading line breaks from the log header emitted by Setup.php. This feature, accidentally broken in 2014, allows requests to be distinguished in the log file. * Avoid using the global variable $self. * Move the logging of the client IP back to Setup.php. It was moved to WebRequest in the hopes that it would not always be needed, however $wgRequest->getIP() is now called unconditionally a few lines up in Setup.php. This means that it is put in its proper place after the "start request" message. * Wrap the log header code in a closure so that variables like $name do not leak into global scope. * In Linker.php, remove a few instances of an unnecessary second parameter to wfDebug(). Change-Id: I96651d3044a95b9d210b51cb8368edc76bebbb9e
* Add missing visibility on methods related to import/exportUmherirrender2020-05-091-18/+8
| | | | Change-Id: Iec6646a55a8c5d8e8a56dc7bccf8ef98a998ce1a
* TextPassDumper: implement prefetch for non-main slots.daniel2020-03-241-2/+20
| | | | | | | | | This updates BaseDump to support scanning for <text> tags nested in <content> tags. Without this feature, the prefetch logic will fail for all slots other than the main slot. Bug: T246074 Change-Id: I73edd67135cbd3150a4d87448b0c9dd43cf1a2fd
* build: Updating mediawiki/mediawiki-codesniffer to 24.0.0Kunal Mehta2019-02-071-6/+6
| | | | Change-Id: I66b1775b7c1d36076d9ca78cbeb42787a743f2aa
* Don't check for LIBXML_PARSEHUGE presenceMax Semenik2019-01-071-5/+1
| | | | | | It's been present since PHP 5.3.2. Change-Id: I23a3c50c10e984abe6ff214fbf504ab6f6be763c
* Move BaseDump into includes/export/Chad Horohoe2018-01-081-0/+219
There's no reason for this to have to live in Maintenance land. It's generally useful and lets us avoid some random require/include calls Change-Id: I60419c7f9fc52313905053bbeb3aa81666c9160c