mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Merge pull request #4617 from spekulatius/readibility
improve readability
This commit is contained in:
commit
d0fe105045
@ -509,13 +509,17 @@ abstract class Object {
|
||||
}
|
||||
$extensionClass = $matches[1];
|
||||
if(!class_exists($extensionClass)) {
|
||||
user_error(sprintf('Object::add_extension() - Can\'t find extension class for "%s"', $extensionClass),
|
||||
E_USER_ERROR);
|
||||
user_error(
|
||||
sprintf('Object::add_extension() - Can\'t find extension class for "%s"', $extensionClass),
|
||||
E_USER_ERROR
|
||||
);
|
||||
}
|
||||
|
||||
if(!is_subclass_of($extensionClass, 'Extension')) {
|
||||
user_error(sprintf('Object::add_extension() - Extension "%s" is not a subclass of Extension',
|
||||
$extensionClass), E_USER_ERROR);
|
||||
user_error(
|
||||
sprintf('Object::add_extension() - Extension "%s" is not a subclass of Extension', $extensionClass),
|
||||
E_USER_ERROR
|
||||
);
|
||||
}
|
||||
|
||||
// unset some caches
|
||||
|
Loading…
Reference in New Issue
Block a user