add flags

This commit is contained in:
Universal Omega 2021-01-23 14:07:02 -07:00 committed by GitHub
parent 7f74d0ee4f
commit d2effcf6b2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -68,9 +68,12 @@ class CreateTemplateUpdateMaintenance extends LoggedUpdateMaintenance {
$content = $wikipage->getContentHandler()->makeContent( '', $title );
$updater->setContent( SlotRecord::MAIN, $content );
$comment = CommentStoreComment::newUnsavedComment( 'Autogenerated DPL\'s necessary template for content inclusion' );
$newRevision = $updater->saveRevision( $comment );
$revision = $updater->saveRevision(
$comment,
EDIT_NEW | EDIT_FORCE_BOT | EDIT_INTERNAL
);
if ( $newRevision instanceof RevisionRecord ) {
if ( $revision instanceof RevisionRecord ) {
$this->output( "done.\n" );
} else {
$this->output( "error.\n" );