Merge pull request #1570 from open-sausages/pulls/4.0/controller-link-standardise

BUG Fix incorrect route registration order
This commit is contained in:
Hamish Friedlander 2016-08-02 13:28:40 +12:00 committed by GitHub
commit 744118a9b6
2 changed files with 1 additions and 8 deletions

View File

@ -6,12 +6,9 @@ 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'

View File

@ -57,10 +57,6 @@ in the other stage:<br />
protected $orphanedSearchClass = 'SiteTree';
public function Link() {
return $this->class;
}
public function init() {
parent::init();