From 68e7f8b123dff4be04edce67095e648aa10c5add Mon Sep 17 00:00:00 2001 From: Imanol Losada Date: Wed, 29 Oct 2014 17:35:55 -0500 Subject: [PATCH] Replace getImage() with getImagePath() function name. Modify function description - refs #5637 --- main/inc/lib/social.lib.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/main/inc/lib/social.lib.php b/main/inc/lib/social.lib.php index cb7876fd94..feb5f0fc91 100755 --- a/main/inc/lib/social.lib.php +++ b/main/inc/lib/social.lib.php @@ -1440,8 +1440,8 @@ class SocialManager extends UserManager if (!empty($message['path'])) { $pathUserInfo = UserManager::get_user_picture_path_by_id($authorId, 'web', true); $pathImg = $pathUserInfo['dir'] . 'message_attachments'; - $imageBig = $pathImg .self::getImage($message['path'], IMAGE_WALL_BIG); - $imageSmall = $pathImg. self::getImage($message['path'], IMAGE_WALL_SMALL); + $imageBig = $pathImg .self::getImagePath($message['path'], IMAGE_WALL_BIG); + $imageSmall = $pathImg. self::getImagePath($message['path'], IMAGE_WALL_SMALL); $wallImage = ''; } @@ -1534,11 +1534,11 @@ class SocialManager extends UserManager /** - * Get name img by sizes - * @param string$path - * @return string + * Get sized image path + * @param string $path + * @return string */ - private static function getImage($path, $size = '') + private static function getImagePath($path, $size = '') { $name = ''; $array = preg_split('#\/#', $path);