API Revert DataObject::validate to 3.1 method signature (protected)

This commit is contained in:
Damian Mooyman 2015-06-16 11:44:19 +12:00
parent 9fd0c5b0d7
commit f3e1472493
2 changed files with 2 additions and 2 deletions

View File

@ -1625,7 +1625,7 @@ class SiteTree extends DataObject implements PermissionProvider,i18nEntityProvid
$this->_cache_statusFlags = null;
}
public function validate() {
protected function validate() {
$result = parent::validate();
// Allowed children validation

View File

@ -344,7 +344,7 @@ class VirtualPage extends Page {
}
}
public function validate() {
protected function validate() {
$result = parent::validate();
// "Can be root" validation