Skip to content
Permalink
Browse files

BUG Fix incorrect route registration order

Remove redundant Link() override
  • Loading branch information...
Damian Mooyman
Damian Mooyman committed Aug 1, 2016
1 parent 5a1675a commit ab60850a281c849e32b958d43bad2f64a9282ea0
Showing with 1 addition and 5 deletions.
  1. +1 −1 _config/routes.yml
  2. +0 −4 tasks/RemoveOrphanedPagesTask.php
@@ -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'
@@ -57,10 +57,6 @@ class RemoveOrphanedPagesTask extends Controller {
protected $orphanedSearchClass = 'SiteTree';
public function Link() {
return $this->class;
}
public function init() {
parent::init();

0 comments on commit ab60850

Please sign in to comment.
You can’t perform that action at this time.