From 3684951a9043399a9ec2d22386276b35b1cdcb04 Mon Sep 17 00:00:00 2001 From: Lucas Bartholemy Date: Thu, 16 Mar 2017 17:31:19 +0100 Subject: [PATCH] Fixed compat method naming --- .../modules/user/controllers/AccountController.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/protected/humhub/modules/user/controllers/AccountController.php b/protected/humhub/modules/user/controllers/AccountController.php index 9b91d2347b..1577a30e44 100644 --- a/protected/humhub/modules/user/controllers/AccountController.php +++ b/protected/humhub/modules/user/controllers/AccountController.php @@ -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]); }