$this->timestamp = $revision->getTimestamp();
}
$this->revision = $revision;
- $this->newForCategorizationCallback = [ 'RecentChange', 'newForCategorization' ];
+ $this->newForCategorizationCallback = [ RecentChange::class, 'newForCategorization' ];
}
/**
),
$this->pageTitle,
$this->getPreviousRevisionTimestamp(),
- $this->revision
+ $this->revision,
+ $type === self::CATEGORY_ADDITION
);
}
* @param Title $pageTitle Title of the page that is being added or removed
* @param string $lastTimestamp Parent revision timestamp of this change in TS_MW format
* @param Revision|null $revision
+ * @param bool $added true, if the category was added, false for removed
*
* @throws MWException
*/
$comment,
Title $pageTitle,
$lastTimestamp,
- $revision
+ $revision,
+ $added
) {
$deleted = $revision ? $revision->getVisibility() & Revision::SUPPRESSED_USER : 0;
$newRevId = $revision ? $revision->getId() : 0;
$lastTimestamp,
$bot,
$ip,
- $deleted
+ $deleted,
+ $added
]
);
$rc->save();