mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
FIX File class typo
This commit is contained in:
parent
a5d69f2bf5
commit
00b8ffd05f
@ -936,7 +936,7 @@ class File extends DataObject {
|
|||||||
if(!is_array($exts)) $exts = array($exts);
|
if(!is_array($exts)) $exts = array($exts);
|
||||||
|
|
||||||
foreach($exts as $ext) {
|
foreach($exts as $ext) {
|
||||||
if(!is_subclass_of($ext, 'File')) {
|
if(!is_subclass_of($class, 'File')) {
|
||||||
throw new InvalidArgumentException(
|
throw new InvalidArgumentException(
|
||||||
sprintf('Class "%s" (for extension "%s") is not a valid subclass of File', $class, $ext)
|
sprintf('Class "%s" (for extension "%s") is not a valid subclass of File', $class, $ext)
|
||||||
);
|
);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user