BUGFIX Revert r61631 for Translatable but kept SiteTree changes instact from that revision since they are still useful

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/branches/2.2@61815 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Sean Harvey 2008-09-01 02:59:34 +00:00 committed by Sam Minnee
parent 0f615b7bc6
commit 000749a9d7

View File

@ -630,21 +630,6 @@ class Translatable extends DataObjectDecorator {
}
}
/**
* Update the actions available in the CMS.
* In particular, this removes all publication functionality when editing a translated page (because it's b0rked).
*/
function updateCMSActions(FieldSet &$fields) {
if (! $this->stat('enabled')) return false;
if(!self::is_default_lang()) {
$fields->removeByName('action_publish');
$fields->removeByName('action_rollback');
$fields->removeByName('action_unpublish');
$fields->removeByName('action_deletefromlive');
}
}
protected function duplicateOrReplaceFields(&$fields) {
$tasks = array(
'dup' => array(),