Merge pull request #1215 from tractorcow/pulls/3.2/fix-public-validate

API Revert DataObject::validate to 3.1 method signature (protected)
This commit is contained in:
Damian Mooyman 2015-06-17 15:50:26 +12:00
commit 0a30972e6b
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