Commit 4ef19b2e by Carsten Brandt

static instead of self for creating instances

in UploadedFile::loadFilesRecursive fixes #542
parent 0b294c6f
...@@ -240,7 +240,7 @@ class UploadedFile extends \yii\base\Object ...@@ -240,7 +240,7 @@ class UploadedFile extends \yii\base\Object
self::loadFilesRecursive($key . '[' . $i . ']', $name, $tempNames[$i], $types[$i], $sizes[$i], $errors[$i]); self::loadFilesRecursive($key . '[' . $i . ']', $name, $tempNames[$i], $types[$i], $sizes[$i], $errors[$i]);
} }
} else { } else {
self::$_files[$key] = new self($names, $tempNames, $types, $sizes, $errors); self::$_files[$key] = new static($names, $tempNames, $types, $sizes, $errors);
} }
} }
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment