Merge pull request #1355 from kinglozzer/contentcontroller-failover

Use setFailover() in ContentController (closes silverstripe/silverstripe-framework#4821)
This commit is contained in:
Damian Mooyman 2016-01-08 12:59:11 +13:00
commit 56f1c139fd

View File

@ -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);
} }
/** /**