Fixed compat method naming

This commit is contained in:
Lucas Bartholemy 2017-03-16 17:31:19 +01:00
parent e7010751f7
commit 3684951a90

View File

@ -373,7 +373,7 @@ class AccountController extends BaseAccountController
* Crops the banner image of the user
* @deprecated since version 1.2
*/
public function actionCropBannerImageXX()
public function actionCropBannerImage()
{
return Yii::$app->runAction('/user/image/crop', ['type' => ImageController::TYPE_PROFILE_BANNER_IMAGE]);
}
@ -383,7 +383,7 @@ class AccountController extends BaseAccountController
*
* @deprecated since version 1.2
*/
public function actionBannerImageUploadXX()
public function actionBannerImageUpload()
{
// Ensure view file backward compatibility prior 1.2
if (isset($_FILES['bannerfiles'])) {
@ -397,7 +397,7 @@ class AccountController extends BaseAccountController
*
* @deprecated since version 1.2
*/
public function actionProfileImageUploadXX()
public function actionProfileImageUpload()
{
// Ensure view file backward compatibility prior 1.2
if (isset($_FILES['profilefiles'])) {
@ -410,7 +410,7 @@ class AccountController extends BaseAccountController
* Crops the profile image of the user
* @deprecated since version 1.2
*/
public function actionCropProfileImageXX()
public function actionCropProfileImage()
{
return Yii::$app->runAction('/user/image/crop', ['type' => ImageController::TYPE_PROFILE_IMAGE]);
}
@ -419,7 +419,7 @@ class AccountController extends BaseAccountController
* Deletes the profile image or profile banner
* @deprecated since version 1.2
*/
public function actionDeleteProfileImageXX()
public function actionDeleteProfileImage()
{
return Yii::$app->runAction('/user/image/delete', ['type' => (Yii::$app->request->get('type', 'profile') == 'profile') ? ImageController::TYPE_PROFILE_IMAGE : ImageController::TYPE_PROFILE_BANNER_IMAGE]);
}