Browse Source

static instead of self for creating instances

in UploadedFile::loadFilesRecursive
fixes #542
tags/2.0.0-beta
Carsten Brandt 12 years ago
parent
commit
4ef19b2e79
  1. 2
      framework/yii/web/UploadedFile.php

2
framework/yii/web/UploadedFile.php

@ -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);
} }
} }
} }

Loading…
Cancel
Save