mirror of
https://github.com/Universal-Omega/DynamicPageList3
synced 2024-11-14 19:30:15 +00:00
add flags
This commit is contained in:
parent
7f74d0ee4f
commit
d2effcf6b2
|
@ -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" );
|
||||
|
|
Loading…
Reference in a new issue