diff --git a/modules/member/member.controller.php b/modules/member/member.controller.php index 0814383f3..061810ba2 100644 --- a/modules/member/member.controller.php +++ b/modules/member/member.controller.php @@ -1024,11 +1024,11 @@ if($image_name->width) { if($image_mark->height && $image_mark->height > $image_name->height) $top_margin = ($image_mark->height - $image_name->height)/2; else $top_margin = 0; - $text = sprintf('image', $image_name->file, $image_name->width, $image_name->height, $top_margin); + $text = sprintf('image', Context::getRequestUri().$image_name->file, $image_name->width, $image_name->height, $top_margin); } if($image_mark->width) { - $matches[0] = str_replace('<'.$matches[6], sprintf('<%s style="cursor:pointer;background:url(%s) no-repeat left;padding-left:%dpx; height:%dpx" ', $matches[1],$image_mark->file, $image_mark->width+2, $image_mark->height), $matches[0] ); + $matches[0] = str_replace('<'.$matches[6], sprintf('<%s style="cursor:pointer;background:url(%s) no-repeat left;padding-left:%dpx; height:%dpx" ', $matches[1],Context::getRequestUri().$image_mark->file, $image_mark->width+2, $image_mark->height), $matches[0] ); } return str_replace($matches[5], $text, $matches[0]);