mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-10-22 08:05:56 +02:00
Merge pull request #1355 from kinglozzer/contentcontroller-failover
Use setFailover() in ContentController (closes silverstripe/silverstripe-framework#4821)
This commit is contained in:
commit
56f1c139fd
@ -43,8 +43,10 @@ class ContentController extends Controller {
|
|||||||
}
|
}
|
||||||
|
|
||||||
$this->dataRecord = $dataRecord;
|
$this->dataRecord = $dataRecord;
|
||||||
$this->failover = $this->dataRecord;
|
|
||||||
parent::__construct();
|
parent::__construct();
|
||||||
|
|
||||||
|
$this->setFailover($this->dataRecord);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user