diff --git a/maintenance/createTemplate.php b/maintenance/createTemplate.php index 69809b1..a18b444 100644 --- a/maintenance/createTemplate.php +++ b/maintenance/createTemplate.php @@ -17,15 +17,12 @@ if ( $IP === false ) { require_once "$IP/maintenance/Maintenance.php"; -/* - * Creates the DPL template when updating. - */ class CreateTemplate extends LoggedUpdateMaintenance { public function __construct() { parent::__construct(); - $this->addDescription( 'Handle inserting DPL\'s necessary template for content inclusion.' ); + $this->addDescription( 'Handle inserting DynamicPageList3\'s necessary template for content inclusion.' ); } /** @@ -34,7 +31,7 @@ class CreateTemplate extends LoggedUpdateMaintenance { * @return string */ protected function getUpdateKey() { - return 'dynamic-page-list-create-template'; + return 'dynamic-page-list-3-create-template'; } /** @@ -47,7 +44,7 @@ class CreateTemplate extends LoggedUpdateMaintenance { } /** - * Handle inserting DPL's necessary template for content inclusion. + * Handle inserting DynamicPageList3's necessary template for content inclusion. * * @return bool */ @@ -68,7 +65,7 @@ class CreateTemplate extends LoggedUpdateMaintenance { $updater = $page->newPageUpdater( User::newSystemUser( 'DynamicPageList3 extension' ) ); $content = $page->getContentHandler()->makeContent( '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].', $title ); $updater->setContent( SlotRecord::MAIN, $content ); - $comment = CommentStoreComment::newUnsavedComment( 'Autogenerated DPL\'s necessary template for content inclusion' ); + $comment = CommentStoreComment::newUnsavedComment( 'Autogenerated DynamicPageList3\'s necessary template for content inclusion.' ); $updater->saveRevision( $comment,