mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-10-22 08:05:56 +02:00
API CHANGE Moved SiteTree->doRollbackTo() to Versioned class
This commit is contained in:
parent
81881e1379
commit
426f7e734f
@ -2135,17 +2135,6 @@ class SiteTree extends DataObject implements PermissionProvider,i18nEntityProvid
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
* Roll the draft version of this page to match the published page.
|
||||
* Caution: Doesn't overwrite the object properties with the rolled back version.
|
||||
*
|
||||
* @param $version Either the string 'Live' or a version number
|
||||
*/
|
||||
function doRollbackTo($version) {
|
||||
$this->publish($version, "Stage", true);
|
||||
$this->writeWithoutVersion();
|
||||
}
|
||||
|
||||
/**
|
||||
* Revert the draft changes: replace the draft content with the content on live
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user