2008-10-03 00:48:55 +02:00
|
|
|
<?php
|
|
|
|
|
2010-01-28 08:26:00 +01: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 08:26:00 +01: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 22:43:40 +02:00
|
|
|
|
|
|
|
Director::addRules(100, array(
|
|
|
|
'dev/regress/$Action/$ID' => 'FrameworktestRegressSessionAdmin'
|
|
|
|
));
|
2010-05-03 22:45:17 +02:00
|
|
|
|
|
|
|
if(@$_GET['db']) {
|
2010-05-11 00:45:09 +02:00
|
|
|
$enabletranslatable = @$_GET['enabletranslatable'];
|
2010-05-03 22:45:17 +02:00
|
|
|
} elseif(@$_SESSION['db']) {
|
2010-05-11 00:45:09 +02:00
|
|
|
$enabletranslatable = @$_SESSION['enabletranslatable'];
|
2010-05-03 22:45:17 +02:00
|
|
|
} else {
|
|
|
|
$enabletranslatable = null;
|
|
|
|
}
|
|
|
|
if($enabletranslatable) {
|
|
|
|
Object::add_extension('SiteTree', 'Translatable');
|
|
|
|
Object::add_extension('SiteConfig', 'Translatable');
|
|
|
|
}
|
2010-01-28 08:26:00 +01:00
|
|
|
?>
|