From 7348ce7077bd10bbdb2e0ff7f86e7bce27c38214 Mon Sep 17 00:00:00 2001 From: Ingo Schommer Date: Sun, 1 May 2011 22:29:20 +1200 Subject: [PATCH] MINOR Subclassing from DataExtension instead of DataObjectDecorator --- code/model/Translatable.php | 2 +- tests/unit/TranslatableTest.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/code/model/Translatable.php b/code/model/Translatable.php index efb13f9..91b91cd 100755 --- a/code/model/Translatable.php +++ b/code/model/Translatable.php @@ -160,7 +160,7 @@ * * @package translatable */ -class Translatable extends DataObjectDecorator implements PermissionProvider { +class Translatable extends DataExtension implements PermissionProvider { /** * The 'default' language. diff --git a/tests/unit/TranslatableTest.php b/tests/unit/TranslatableTest.php index 2d81807..1128e52 100755 --- a/tests/unit/TranslatableTest.php +++ b/tests/unit/TranslatableTest.php @@ -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'); ?>