mirror of
https://github.com/yiisoft/yii2.git
synced 2025-11-15 22:09:48 +08:00
Merge branch 'master' of https://github.com/yiisoft/yii2
This commit is contained in:
@@ -7,7 +7,7 @@
|
||||
|
||||
namespace yii\web;
|
||||
|
||||
use yii\widgets\ActiveForm;
|
||||
use yii\widgets\Html;
|
||||
|
||||
/**
|
||||
* @author Qiang Xue <qiang.xue@gmail.com>
|
||||
@@ -66,7 +66,7 @@ class UploadedFile extends \yii\base\Object
|
||||
*/
|
||||
public static function getInstance($model, $attribute)
|
||||
{
|
||||
$name = ActiveForm::getInputName($model, $attribute);
|
||||
$name = Html::getInputName($model, $attribute);
|
||||
return static::getInstanceByName($name);
|
||||
}
|
||||
|
||||
@@ -80,7 +80,7 @@ class UploadedFile extends \yii\base\Object
|
||||
*/
|
||||
public static function getInstances($model, $attribute)
|
||||
{
|
||||
$name = ActiveForm::getInputName($model, $attribute);
|
||||
$name = Html::getInputName($model, $attribute);
|
||||
return static::getInstancesByName($name);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user