dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge "Made ReplicatedBagOStuff wrapping the SQL class the default stash"
[lhc/web/wiklou.git]
/
includes
/
jobqueue
/
jobs
/
UploadFromUrlJob.php
diff --git
a/includes/jobqueue/jobs/UploadFromUrlJob.php
b/includes/jobqueue/jobs/UploadFromUrlJob.php
index
a09db15
..
a15d51e
100644
(file)
--- a/
includes/jobqueue/jobs/UploadFromUrlJob.php
+++ b/
includes/jobqueue/jobs/UploadFromUrlJob.php
@@
-39,7
+39,7
@@
class UploadFromUrlJob extends Job {
/** @var User */
protected $user;
/** @var User */
protected $user;
- public function __construct(
$title,
$params ) {
+ public function __construct(
Title $title, array
$params ) {
parent::__construct( 'uploadFromUrl', $title, $params );
}
parent::__construct( 'uploadFromUrl', $title, $params );
}
@@
-81,7
+81,7
@@
class UploadFromUrlJob extends Job {
if ( $warnings ) {
# Stash the upload
if ( $warnings ) {
# Stash the upload
- $key = $this->upload->stashFile();
+ $key = $this->upload->stashFile(
$this->user
);
// @todo FIXME: This has been broken for a while.
// User::leaveUserMessage() does not exist.
// @todo FIXME: This has been broken for a while.
// User::leaveUserMessage() does not exist.