Skip to content

Commit

Permalink
Fixed #1258: Crop profile image redirect fails
Browse files Browse the repository at this point in the history
  • Loading branch information
luke- committed Nov 6, 2015
1 parent 1ca2bc1 commit 91eb138
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -377,7 +377,7 @@ public function actionCropProfileImage()

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()));
Expand Down

0 comments on commit 91eb138

Please sign in to comment.