mirror of
https://we.phorge.it/source/phorge.git
synced 2025-03-28 04:00:17 +01:00
Merge branch 'upload'
This commit is contained in:
commit
a3584efe78
1 changed files with 5 additions and 2 deletions
|
@ -73,8 +73,11 @@ class PhabricatorUserSettingsController extends PhabricatorPeopleController {
|
||||||
->setURI('/settings/page/arcanist/?regenerated=true');
|
->setURI('/settings/page/arcanist/?regenerated=true');
|
||||||
case 'account':
|
case 'account':
|
||||||
if (!empty($_FILES['profile'])) {
|
if (!empty($_FILES['profile'])) {
|
||||||
$file = PhabricatorFile::newFromPHPUpload($_FILES['profile']);
|
$err = idx($_FILES['profile'], 'error');
|
||||||
$user->setProfileImagePHID($file->getPHID());
|
if ($err != UPLOAD_ERR_NO_FILE) {
|
||||||
|
$file = PhabricatorFile::newFromPHPUpload($_FILES['profile']);
|
||||||
|
$user->setProfileImagePHID($file->getPHID());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
$user->save();
|
$user->save();
|
||||||
|
|
Loading…
Add table
Reference in a new issue