From d4acf7c9386b89b670160656204b813cb175f622 Mon Sep 17 00:00:00 2001 From: Andrew Short Date: Tue, 13 Oct 2009 01:44:21 +0000 Subject: [PATCH] MINOR: Removed unnecessary extension instance check in Object->__construct(), since Extensions no longer inherit from Object. From: Andrew Short git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@88772 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- core/Object.php | 3 --- 1 file changed, 3 deletions(-) diff --git a/core/Object.php b/core/Object.php index 23b2b7139..a0ca325ea 100755 --- a/core/Object.php +++ b/core/Object.php @@ -503,9 +503,6 @@ abstract class Object { public function __construct() { $this->class = get_class($this); - // Don't do magic methods and/or extensions on extensions themselves. - if($this instanceof Extension) return; - // Don't bother checking some classes that should never be extended static $notExtendable = array('Object', 'ViewableData', 'DataObject', 'RequestHandler');