API CHANGE Moved SiteTree->doRollbackTo() to Versioned class

This commit is contained in:
Ingo Schommer 2011-03-23 16:02:07 +13:00
parent 81881e1379
commit 426f7e734f

View File

@ -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
*/