Pass user to File::recordUpload to avoid $wgUser
authorumherirrender <umherirrender_de.wp@web.de>
Mon, 18 Feb 2013 18:55:08 +0000 (19:55 +0100)
committerGerrit Code Review <gerrit@wikimedia.org>
Sat, 23 Feb 2013 12:46:28 +0000 (12:46 +0000)
commit678f2da99dad9ff5e1cceea851480d20d0323233
tree10d62c3e73bd1417446f8ac6070bf224d2386564
parent3869c3f839f2c131de153f2d17ed0ea5e3430c33
Pass user to File::recordUpload to avoid $wgUser

Moves the giving of a user one level up, because File::recordUpload2
already needs this (and fallback to $wgUser).
Can also use the user for the watching of the file, which was using
$wgUser before.

Change-Id: I697ae0df65b07ea59ab11b62804853cdc03cb172
includes/filerepo/file/File.php
includes/filerepo/file/ForeignDBFile.php
includes/filerepo/file/LocalFile.php