X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fjobqueue%2Fjobs%2FDoubleRedirectJob.php;h=ab638967e4b710baf346baff8701314913b880eb;hb=417fd76488e0ec116ff86a533f7661016f655227;hp=2561f2f198a07f2eb43fced83dc8909ac22b3cae;hpb=d78b4eeff8cdf47ba6f5da1257c4a6e9de688316;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/jobqueue/jobs/DoubleRedirectJob.php b/includes/jobqueue/jobs/DoubleRedirectJob.php index 2561f2f198..ab638967e4 100644 --- a/includes/jobqueue/jobs/DoubleRedirectJob.php +++ b/includes/jobqueue/jobs/DoubleRedirectJob.php @@ -40,6 +40,16 @@ class DoubleRedirectJob extends Job { /** @var User */ private static $user; + /** + * @param Title $title + * @param array $params + */ + function __construct( Title $title, array $params ) { + parent::__construct( 'fixDoubleRedirect', $title, $params ); + $this->reason = $params['reason']; + $this->redirTitle = Title::newFromText( $params['redirTitle'] ); + } + /** * Insert jobs into the job queue to fix redirects to the given title * @param string $reason The reason for the fix, see message @@ -81,16 +91,6 @@ class DoubleRedirectJob extends Job { JobQueueGroup::singleton()->push( $jobs ); } - /** - * @param Title $title - * @param array|bool $params - */ - function __construct( $title, $params = false ) { - parent::__construct( 'fixDoubleRedirect', $title, $params ); - $this->reason = $params['reason']; - $this->redirTitle = Title::newFromText( $params['redirTitle'] ); - } - /** * @return bool */