2008-10-02 22:48:55 +00:00
|
|
|
<?php
|
|
|
|
|
2010-01-28 07:26:00 +00:00
|
|
|
Object::add_extension('Member', 'FrameworkTestRole');
|
|
|
|
Object::add_extension('Member', 'FileUploadRole');
|
2012-03-08 10:36:12 +01:00
|
|
|
Object::add_extension('SiteTree', 'FrameworkTestSiteTreeExtension');
|
2010-01-28 07:26:00 +00:00
|
|
|
|
2012-02-29 12:54:51 +01:00
|
|
|
if(class_exists('SiteTreeCMSWorkflow')) {
|
|
|
|
Object::add_extension('SiteConfig', 'CMSWorkflowSiteConfigDecorator');
|
|
|
|
CMSWorkflowSiteConfigDecorator::apply_active_config();
|
|
|
|
}
|
2010-05-03 20:43:40 +00:00
|
|
|
|
|
|
|
Director::addRules(100, array(
|
|
|
|
'dev/regress/$Action/$ID' => 'FrameworktestRegressSessionAdmin'
|
|
|
|
));
|
2010-05-03 20:45:17 +00:00
|
|
|
|
|
|
|
if(@$_GET['db']) {
|
2010-05-10 22:45:09 +00:00
|
|
|
$enabletranslatable = @$_GET['enabletranslatable'];
|
2010-05-03 20:45:17 +00:00
|
|
|
} elseif(@$_SESSION['db']) {
|
2010-05-10 22:45:09 +00:00
|
|
|
$enabletranslatable = @$_SESSION['enabletranslatable'];
|
2010-05-03 20:45:17 +00:00
|
|
|
} else {
|
|
|
|
$enabletranslatable = null;
|
|
|
|
}
|
|
|
|
if($enabletranslatable) {
|
|
|
|
Object::add_extension('SiteTree', 'Translatable');
|
|
|
|
Object::add_extension('SiteConfig', 'Translatable');
|
|
|
|
}
|
2010-01-28 07:26:00 +00:00
|
|
|
?>
|