MINOR: Removed use of deprecated ClassInfo::is_subclass_of

This commit is contained in:
Sam Minnee 2011-10-29 16:56:38 +13:00
parent a4ee0f4dad
commit da64123116
2 changed files with 2 additions and 2 deletions

View File

@ -92,7 +92,7 @@ class ClassInfo {
public static function baseDataClass($class) { public static function baseDataClass($class) {
if (is_object($class)) $class = get_class($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"); throw new Exception("$class is not a subclass of DataObject");
} }

View File

@ -600,7 +600,7 @@ abstract class Object {
*/ */
public static function remove_extension($class, $extension) { public static function remove_extension($class, $extension) {
// unload statics now for DataObject classes // unload statics now for DataObject classes
if(ClassInfo::is_subclass_of($class, 'DataObject')) { if(is_subclass_of($class, 'DataObject')) {
if(!preg_match('/^([^(]*)/', $extension, $matches)) { if(!preg_match('/^([^(]*)/', $extension, $matches)) {
user_error("Bad extension '$extension'", E_USER_WARNING); user_error("Bad extension '$extension'", E_USER_WARNING);
} else { } else {