Made asynchronous upload by URL working, partly. Hid it behind $wgAllowAsyncCopyUploa...
authorBryan Tong Minh <btongminh@users.mediawiki.org>
Thu, 29 Jul 2010 13:53:51 +0000 (13:53 +0000)
committerBryan Tong Minh <btongminh@users.mediawiki.org>
Thu, 29 Jul 2010 13:53:51 +0000 (13:53 +0000)
commitd7e6870b8fcf9aa215702f03c297018684082859
tree09e8d452177955ffd37524f5b24123e255eba0ee
parent9e63cdf976309217eecab3513821b37ab96e4837
Made asynchronous upload by URL working, partly. Hid it behind $wgAllowAsyncCopyUploads. If there are no errors then everything works expected; the same if there are unrecoverable errors. User intervention to solve warnings is not yet possible, because $_SESSION is not available in runJobs. This also means that async with leavemessage = false is broken.

Other changes:
* Moved verifyPermissions check in ApiUpload down pending r70135 implementation in the API.
* In User::leaveMessage: append message to end of talk page; add a newline before the heading
includes/DefaultSettings.php
includes/User.php
includes/api/ApiUpload.php
includes/job/UploadFromUrlJob.php
includes/upload/UploadFromUrl.php