From ab60850a281c849e32b958d43bad2f64a9282ea0 Mon Sep 17 00:00:00 2001 From: Damian Mooyman Date: Tue, 2 Aug 2016 10:35:40 +1200 Subject: [PATCH] BUG Fix incorrect route registration order Remove redundant Link() override --- _config/routes.yml | 2 +- tasks/RemoveOrphanedPagesTask.php | 4 ---- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/_config/routes.yml b/_config/routes.yml index c9f88493..76480be0 100644 --- a/_config/routes.yml +++ b/_config/routes.yml @@ -6,12 +6,12 @@ After: '#rootroutes' Director: rules: '': 'RootURLController' - '$URLSegment//$Action/$ID/$OtherID': 'ModelAsController' 'StaticExporter//$Action/$ID/$OtherID': 'StaticExporter' 'RebuildStaticCacheTask//$Action/$ID/$OtherID': 'RebuildStaticCacheTask' 'RemoveOrphanedPagesTask//$Action/$ID/$OtherID': 'RemoveOrphanedPagesTask' 'SiteTreeMaintenanceTask//$Action/$ID/$OtherID': 'SiteTreeMaintenanceTask' 'SiteTreeMaintenanceTask//$Action/$ID/$OtherID': 'SiteTreeMaintenanceTask' + '$URLSegment//$Action/$ID/$OtherID': 'ModelAsController' --- Name: legacycmsroutes After: '#adminroutes' diff --git a/tasks/RemoveOrphanedPagesTask.php b/tasks/RemoveOrphanedPagesTask.php index c815bf4a..902cbaff 100644 --- a/tasks/RemoveOrphanedPagesTask.php +++ b/tasks/RemoveOrphanedPagesTask.php @@ -57,10 +57,6 @@ in the other stage:
protected $orphanedSearchClass = 'SiteTree'; - public function Link() { - return $this->class; - } - public function init() { parent::init();