Fixed add_extension() usage

This commit is contained in:
Ingo Schommer 2013-03-19 09:46:21 +01:00
parent 907f4dd73a
commit 197692fd6f

View File

@ -1,8 +1,8 @@
<?php <?php
Object::add_extension('Member', 'FrameworkTestRole'); Member::add_extension('FrameworkTestRole');
Object::add_extension('Member', 'FileUploadRole'); Member::add_extension('FileUploadRole');
Object::add_extension('SiteTree', 'FrameworkTestSiteTreeExtension'); SiteTree::add_extension('FrameworkTestSiteTreeExtension');
if(class_exists('SiteTreeCMSWorkflow')) { if(class_exists('SiteTreeCMSWorkflow')) {
Object::add_extension('SiteConfig', 'CMSWorkflowSiteConfigDecorator'); Object::add_extension('SiteConfig', 'CMSWorkflowSiteConfigDecorator');
@ -21,7 +21,6 @@ if(@$_GET['db']) {
$enabletranslatable = null; $enabletranslatable = null;
} }
if($enabletranslatable) { if($enabletranslatable) {
Object::add_extension('SiteTree', 'Translatable'); SiteTree::add_extension('Translatable');
Object::add_extension('SiteConfig', 'Translatable'); SiteConfig::add_extension('Translatable');
} }
?>