From da6412311648bcb478c627a00b87c986e639ce09 Mon Sep 17 00:00:00 2001 From: Sam Minnee Date: Sat, 29 Oct 2011 16:56:38 +1300 Subject: [PATCH] MINOR: Removed use of deprecated ClassInfo::is_subclass_of --- core/ClassInfo.php | 2 +- core/Object.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/core/ClassInfo.php b/core/ClassInfo.php index 3cfd1c910..5c08360d3 100644 --- a/core/ClassInfo.php +++ b/core/ClassInfo.php @@ -92,7 +92,7 @@ class ClassInfo { public static function baseDataClass($class) { if (is_object($class)) $class = get_class($class); - if (!self::is_subclass_of($class, 'DataObject')) { + if (!is_subclass_of($class, 'DataObject')) { throw new Exception("$class is not a subclass of DataObject"); } diff --git a/core/Object.php b/core/Object.php index 8c3e5b6a4..c1a9bb370 100755 --- a/core/Object.php +++ b/core/Object.php @@ -600,7 +600,7 @@ abstract class Object { */ public static function remove_extension($class, $extension) { // unload statics now for DataObject classes - if(ClassInfo::is_subclass_of($class, 'DataObject')) { + if(is_subclass_of($class, 'DataObject')) { if(!preg_match('/^([^(]*)/', $extension, $matches)) { user_error("Bad extension '$extension'", E_USER_WARNING); } else {