Make importTextFiles.php work with wildcards on the Windows shell
authorThis, that and the other <at.light@live.com.au>
Sat, 16 Jul 2016 12:19:31 +0000 (22:19 +1000)
committerTTO <at.light@live.com.au>
Sat, 16 Jul 2016 12:29:11 +0000 (12:29 +0000)
commitb84905bb85cc005591f3db8473215569b9e4a11d
treeacf8a8dd9fb9f519accdf7997ea28624950871f1
parent566c04a549562cdf0c4c58e6544e40127df12b80
Make importTextFiles.php work with wildcards on the Windows shell

The Windows command line doesn't automatically expand wildcards, unlike
Unix shells. So the script tried to run function calls like
file_get_contents( '*.txt' ), which do not work. This patch uses glob()
to simulate the behaviour of the Unix shell.

This was reported at https://www.mediawiki.org/wiki/Topic:T7hf8bz8u2p4ryol

Change-Id: I002344a19cb08cc8ac8ee75214339b2379b04dbe
maintenance/importTextFiles.php