*/
private $enableUploads;
+ /**
+ * @var bool
+ */
+ private $shouldCreateNullRevision = true;
+
/**
* @param bool $enableUploads
* @param LoggerInterface $logger
$this->logger = $logger;
}
+ /**
+ * Setting this to false will deactivate the creation of a null revision as part of the upload
+ * process logging in LocalFile::recordUpload2, see T193621
+ *
+ * @param bool $shouldCreateNullRevision
+ */
+ public function setNullRevisionCreation( $shouldCreateNullRevision ) {
+ $this->shouldCreateNullRevision = $shouldCreateNullRevision;
+ }
+
/**
* @return StatusValue
*/
$flags,
false,
$importableRevision->getTimestamp(),
- $user
+ $user,
+ [],
+ $this->shouldCreateNullRevision
);
}