mirror of
https://github.com/Universal-Omega/DynamicPageList3
synced 2024-11-15 03:35:17 +00:00
change system username
This commit is contained in:
parent
963a37a4a6
commit
2b6b88936c
|
@ -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 );
|
||||
|
|
Loading…
Reference in a new issue