From 7ad00427e6cef9b735ab3510d5cc810a17fb4734 Mon Sep 17 00:00:00 2001 From: Universal Omega <54654040+Universal-Omega@users.noreply.github.com> Date: Thu, 14 Apr 2022 11:50:05 -0600 Subject: [PATCH] Update CreateTemplate to mention DPL3, not DPL (#166) --- maintenance/createTemplate.php | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) 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,