Clean up user handling in UploadStash
authorChad Horohoe <chadh@wikimedia.org>
Fri, 2 Sep 2016 17:18:12 +0000 (10:18 -0700)
committerAaron Schulz <aschulz@wikimedia.org>
Fri, 2 Sep 2016 17:40:49 +0000 (17:40 +0000)
commit58713d2b1611e55fcd0cf7647af8d96ebc1e88bf
tree9bb3ba85a346d61de3742c952c28bbc48c50cc8b
parentd3b49d9ebba16ac400f6a3aa4d85662c3e5545ef
Clean up user handling in UploadStash

- User parameter is now *required*, remove $wgUser fallback
- We don't actually need the object after construction, don't store it

Change-Id: Id0cc859b70e5d0608ffbfa591bce6a1feb7cc3be
includes/upload/UploadStash.php
maintenance/cleanupUploadStash.php
tests/phpunit/includes/upload/UploadStashTest.php