Commit b6cd61fc by Qiang Xue

Merge pull request #103 from FrediL/master

Fix for UploadedFile
parents ab28ce2d 3ed7b622
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
namespace yii\web; namespace yii\web;
use yii\widgets\ActiveForm; use yii\widgets\Html;
/** /**
* @author Qiang Xue <qiang.xue@gmail.com> * @author Qiang Xue <qiang.xue@gmail.com>
...@@ -66,7 +66,7 @@ class UploadedFile extends \yii\base\Object ...@@ -66,7 +66,7 @@ class UploadedFile extends \yii\base\Object
*/ */
public static function getInstance($model, $attribute) public static function getInstance($model, $attribute)
{ {
$name = ActiveForm::getInputName($model, $attribute); $name = Html::getInputName($model, $attribute);
return static::getInstanceByName($name); return static::getInstanceByName($name);
} }
...@@ -80,7 +80,7 @@ class UploadedFile extends \yii\base\Object ...@@ -80,7 +80,7 @@ class UploadedFile extends \yii\base\Object
*/ */
public static function getInstances($model, $attribute) public static function getInstances($model, $attribute)
{ {
$name = ActiveForm::getInputName($model, $attribute); $name = Html::getInputName($model, $attribute);
return static::getInstancesByName($name); return static::getInstancesByName($name);
} }
......
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