mirror of
https://github.com/humhub/humhub.git
synced 2025-03-04 07:08:58 +01:00
Fixed #1258: Crop profile image redirect fails
This commit is contained in:
parent
1ca2bc1a75
commit
91eb138eb2
@ -377,7 +377,7 @@ class AccountController extends Controller
|
||||
|
||||
if ($model->load(Yii::$app->request->post()) && $model->validate()) {
|
||||
$profileImage->cropOriginal($model->cropX, $model->cropY, $model->cropH, $model->cropW);
|
||||
return $this->htmlRedirect(Yii::$app->user->getModel()->getUrl());
|
||||
return $this->htmlRedirect(Yii::$app->user->getIdentity()->getUrl());
|
||||
}
|
||||
|
||||
return $this->renderAjax('cropProfileImage', array('model' => $model, 'profileImage' => $profileImage, 'user' => Yii::$app->user->getIdentity()));
|
||||
|
Loading…
x
Reference in New Issue
Block a user