change system username

This commit is contained in:
Universal Omega 2021-01-23 16:24:49 -07:00 committed by GitHub
parent 963a37a4a6
commit 2b6b88936c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -64,7 +64,7 @@ class CreateTemplateUpdateMaintenance extends LoggedUpdateMaintenance {
// Make sure template does not already exist
if ( !$title->exists() ) {
$wikipage = WikiPage::factory( $title );
$updater = $wikipage->newPageUpdater( User::newSystemUser( 'DynamicPageList3 Extension' ) );
$updater = $wikipage->newPageUpdater( User::newSystemUser( 'MediaWiki default' ) );
$content = $wikipage->getContentHandler()->makeContent( '<noinclude>This page was automatically created. It serves as an anchor page for all \'\'\'[[Special:WhatLinksHere/Template:Extension_DPL|invocations]]\'\'\' of [https://www.mediawiki.org/wiki/Special:MyLanguage/Extension:DynamicPageList3 Extension:DynamicPageList3].</noinclude>', $title );
print_r( $content );
$updater->setContent( SlotRecord::MAIN, $content );