mirror of
https://github.com/silverstripe/silverstripe-frameworktest
synced 2024-10-22 11:06:02 +02:00
Fixed add_extension() usage
This commit is contained in:
parent
907f4dd73a
commit
197692fd6f
11
_config.php
11
_config.php
@ -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');
|
||||||
}
|
}
|
||||||
?>
|
|
Loading…
Reference in New Issue
Block a user