mirror of
https://github.com/humhub/humhub.git
synced 2025-02-24 19:23:21 +01:00
commit
99beefc2d0
@ -34,10 +34,10 @@ class UploadProfileImage extends Model
|
||||
*/
|
||||
public function rules()
|
||||
{
|
||||
return array(
|
||||
array('image', 'required'),
|
||||
array('image', 'file', 'extensions' => 'jpg, png, jpeg, tiff', 'maxSize' => 3 * 1024 * 1024),
|
||||
);
|
||||
return [
|
||||
['image', 'required'],
|
||||
['image', 'file', 'extensions' => 'jpg, jpeg, png, tiff', 'maxSize' => 3 * 1024 * 1024],
|
||||
];
|
||||
}
|
||||
|
||||
/**
|
||||
@ -45,9 +45,9 @@ class UploadProfileImage extends Model
|
||||
*/
|
||||
public function attributeLabels()
|
||||
{
|
||||
return array(
|
||||
return [
|
||||
'image' => Yii::t('base', 'New profile image'),
|
||||
);
|
||||
];
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user