Skip to content

Commit

Permalink
fix static
Browse files Browse the repository at this point in the history
  • Loading branch information
carono committed Mar 30, 2018
1 parent a994d3a commit 7bc1eda
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions FileUploadTrait.php
Expand Up @@ -53,10 +53,10 @@ public function init()
*/
public static function startUpload($file)
{
$model = new self();
$model = new static();
return \Yii::createObject([
'class' => $model->uploaderClass,
'modelClass' => self::class,
'modelClass' => static::class,
'file' => $file,
'folder' => $model->fileUploadFolder
]);
Expand Down

0 comments on commit 7bc1eda

Please sign in to comment.