mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
MINOR: Removed use of deprecated ClassInfo::is_subclass_of
This commit is contained in:
parent
a4ee0f4dad
commit
da64123116
@ -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");
|
||||
}
|
||||
|
||||
|
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user