diff --git a/cake/libs/model/model.php b/cake/libs/model/model.php index 564e183ee..c39594603 100644 --- a/cake/libs/model/model.php +++ b/cake/libs/model/model.php @@ -23,12 +23,14 @@ /** * Included libs */ -App::import('Core', array( - 'ClassRegistry', 'Overloadable', 'Validation', 'Set', 'String' -)); +App::import('Core', array('ClassRegistry', 'Validation', 'Set', 'String')); App::import('Model', 'ModelBehavior', false); App::import('Model', 'ConnectionManager', false); +if (!class_exists('Overloadable')) { + require LIBS . 'overloadable.php'; +} + /** * Object-relational mapper. *