Set context earlier in UploadForm::__construct
authorumherirrender <umherirrender_de.wp@web.de>
Thu, 9 Apr 2015 07:21:33 +0000 (09:21 +0200)
committerumherirrender <umherirrender_de.wp@web.de>
Thu, 9 Apr 2015 07:21:33 +0000 (09:21 +0200)
commit0a160b3a86a6e6381cfdcd53e03e37fefaff4e1e
tree615de01945a508bfeef7a0e22d60f555dfa2b1b3
parent8a00f2445d9d34b9e72fadbca144f110abe65656
Set context earlier in UploadForm::__construct

The parent constructor sets the $context for the form, but
getSourceSection is using getUser before the call, which results in a
warning for using RequestContext::getMain().
Just set the context before use.

Change-Id: I88af41b22cf05ce18d3d2852325bc97cd2544556
includes/specials/SpecialUpload.php