mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/PageImages
synced 2024-11-28 02:00:42 +00:00
Adjust InitImageDataJob
$params cannot a bool here Job::run has to return a bool Change-Id: Ieed6675e8de0e3ed4c3376676d5b027a6ab9f4f2
This commit is contained in:
parent
848c07a762
commit
bc4b81c7bb
|
@ -11,7 +11,7 @@ use Title;
|
||||||
class InitImageDataJob extends Job {
|
class InitImageDataJob extends Job {
|
||||||
/**
|
/**
|
||||||
* @param Title $title Title object associated with this job
|
* @param Title $title Title object associated with this job
|
||||||
* @param array|bool $params Parameters to the job, containing an array of
|
* @param array $params Parameters to the job, containing an array of
|
||||||
* page ids representing which pages to process
|
* page ids representing which pages to process
|
||||||
*/
|
*/
|
||||||
public function __construct( Title $title, array $params ) {
|
public function __construct( Title $title, array $params ) {
|
||||||
|
@ -34,5 +34,6 @@ class InitImageDataJob extends Job {
|
||||||
MWExceptionHandler::logException( $e );
|
MWExceptionHandler::logException( $e );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue