mirror of
https://github.com/silverstripe/silverstripe-translatable
synced 2024-10-22 11:05:59 +02:00
MINOR Subclassing from DataExtension instead of DataObjectDecorator
This commit is contained in:
parent
75666d235e
commit
7348ce7077
@ -160,7 +160,7 @@
|
||||
*
|
||||
* @package translatable
|
||||
*/
|
||||
class Translatable extends DataObjectDecorator implements PermissionProvider {
|
||||
class Translatable extends DataExtension implements PermissionProvider {
|
||||
|
||||
/**
|
||||
* The 'default' language.
|
||||
|
@ -962,7 +962,7 @@ class TranslatableTest_DataObject extends DataObject implements TestOnly {
|
||||
);
|
||||
}
|
||||
|
||||
class TranslatableTest_Decorator extends DataObjectDecorator implements TestOnly {
|
||||
class TranslatableTest_Extension extends DataExtension implements TestOnly {
|
||||
|
||||
function extraStatics() {
|
||||
return array(
|
||||
@ -982,5 +982,5 @@ class TranslatableTest_Page extends Page implements TestOnly {
|
||||
);
|
||||
}
|
||||
|
||||
DataObject::add_extension('TranslatableTest_DataObject', 'TranslatableTest_Decorator');
|
||||
DataObject::add_extension('TranslatableTest_DataObject', 'TranslatableTest_Extension');
|
||||
?>
|
||||
|
Loading…
Reference in New Issue
Block a user