Commit graph

9 commits

Author SHA1 Message Date
Umherirrender
b126dbe3f2 Fix various documentation related to null types
The functions returning null or the class property is set explict null

Found by phan strict checks

Change-Id: I4a271093fb6526564d8083a08249c64cb21f2453
2022-02-26 10:31:24 +01:00
Umherirrender
56b2bd653a Improve and add documentation to import/export related classes
Change-Id: Ib2a74c1ac1a1902341e289961f4c1aa4dadd4bd8
2021-02-01 19:35:49 +00:00
Ariel T. Glenn
fd9998ee38 make prefetch for dumps work with large revisions for multiple files
Bug: T213405
Change-Id: Id8a08aad3e597b9548ae36f1b1564c51ac6346ad
2020-07-13 14:01:42 +03:00
Tim Starling
47a1619027 Remove terminating line breaks from debug messages
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
2020-06-03 12:01:16 +10:00
Umherirrender
018f9a3bd4 Add missing visibility on methods related to import/export
Change-Id: Iec6646a55a8c5d8e8a56dc7bccf8ef98a998ce1a
2020-05-09 11:56:48 +00:00
daniel
0e7f818d4a TextPassDumper: implement prefetch for non-main slots.
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
2020-03-24 16:50:46 +01:00
Kunal Mehta
cc5d9a92a2 build: Updating mediawiki/mediawiki-codesniffer to 24.0.0
Change-Id: I66b1775b7c1d36076d9ca78cbeb42787a743f2aa
2019-02-07 18:39:42 +00:00
Max Semenik
c70119302d Don't check for LIBXML_PARSEHUGE presence
It's been present since PHP 5.3.2.

Change-Id: I23a3c50c10e984abe6ff214fbf504ab6f6be763c
2019-01-07 19:32:39 -08:00
Chad Horohoe
93d44c9a42 Move BaseDump into includes/export/
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
2018-01-08 22:10:25 -08:00
Renamed from maintenance/backupPrefetch.inc (Browse further)