diff --git a/README.md b/README.md index 7b462aa..3650124 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # [misdirection](https://packagist.org/packages/nglasl/silverstripe-misdirection) -_The current release is **2.2.18**_ +_The current release is **2.2.19**_ > A module for SilverStripe which will allow both simple and regular expression link redirections based on customisable mappings, either hooking into a page not found or replacing the default automated URL handling. diff --git a/code/tasks/MisdirectionHistoricalLinkMappingTask.php b/code/tasks/MisdirectionHistoricalLinkMappingTask.php index 61e4e0f..e0c2d19 100644 --- a/code/tasks/MisdirectionHistoricalLinkMappingTask.php +++ b/code/tasks/MisdirectionHistoricalLinkMappingTask.php @@ -54,13 +54,13 @@ public function run($request) { $this->live = true; } else { - echo '
Running in test mode... to actually create link mappings, append ?live=1 to the URL...

'; + DB::alteration_message('
Running in test mode... to actually create link mappings, append ?live=1 to the URL...

'); } $this->setupStructure(); $records = $this->getPublishedVersionRecords(); $this->processRecords($records); $this->checkAndCreateMappings(); - echo 'Complete!'; + DB::alteration_message('Complete!'); } /** @@ -268,7 +268,7 @@ protected function checkAndCreateMappings() { "FullURL = '{$URL}'" ); if($query->count('ID') == 0) { - echo "
{$siteTreeID} - {$URL}

"; + DB::alteration_message("
{$siteTreeID} - {$URL}

"); if($this->live) { singleton('MisdirectionService')->createPageMapping($URL, $siteTreeID); }