MINOR: Removed unnecessary extension instance check in Object->__construct(), since Extensions no longer inherit from Object.

From: Andrew Short <andrewjshort@gmail.com>

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@88772 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Andrew Short 2009-10-13 01:44:21 +00:00 committed by Sam Minnee
parent 64612f2070
commit d4acf7c938

View File

@ -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');