Commit graph

7 commits

Author SHA1 Message Date
Kunal Mehta
6e9b4f0e9c Convert all array() syntax to []
Per wikitech-l consensus:
 https://lists.wikimedia.org/pipermail/wikitech-l/2016-February/084821.html

Notes:
* Disabled CallTimePassByReference due to false positives (T127163)

Change-Id: I2c8ce713ce6600a0bb7bf67537c87044c7a45c4b
2016-02-17 01:33:00 -08:00
Andrew H
c812fa3cb3 Add maintenance script importTextFiles.php
importTextFiles.php can be used to import pages from text files
containing wikitext.

Also, added $userObj to WikiRevision so that it can accept a User
object instead of just a username.

This is a GCI task.

Change-Id: I20eaf2005bdd3d041f55d8c0b108f001c064d638
2016-01-08 00:57:11 +00:00
jenkins-bot
ab0a02f640 Merge "Restore changes to WikiRevision that were lost in cdeba4cfc7c" 2016-01-06 17:42:28 +00:00
This, that and the other
2cc10db042 Import: Try to stop revisions getting created with rev_page = 0
It seems that when two simultaneous imports of the same page are started,
we get into the situation where $pageId is 0 (or at least something that
is transformed to 0 when inserted into the DB).

I can't reproduce this locally, so I can't tell you *why* this is
happening. But what is important is to stop it from happening.

Bug: T18674
Change-Id: I79406a1ef8e5db9a31f029438f8132ef590216fe
2016-01-03 21:56:02 +00:00
This, that and the other
ec1b05892b Restore changes to WikiRevision that were lost in cdeba4cfc7
The commit cdeba4cfc7 unintentionally "reverted" part of commits
0623aeb922 and b14d581dab.

Change-Id: I19334bd6b871ab0555c6db873a67e935011aaaa4
2016-01-04 00:55:35 +11:00
georggi
37df726394 Import: Handle uploads with sha1 starting with 0 properly
Bug: T65010
Change-Id: Ia3f2d0b02a0f60df88f9466b66f1c7f5dc870c10
2016-01-03 14:00:35 +02:00
Krzysztof Zbudniewek
cdeba4cfc7 Split classes in Import.php into separate files
Bug: T122532
Change-Id: Ic4463ab8d3a7b2779f43efb92cb790dbc1d88064
2015-12-29 00:42:33 +01:00