이미지이름에 마우스 오버시 아이디가 노출되도록 alt수정, title추가

git-svn-id: http://xe-core.googlecode.com/svn/trunk@1879 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
zero 2007-07-09 06:26:48 +00:00
parent 9d84b4774f
commit 72c812caf0

View file

@ -1079,7 +1079,7 @@
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('<img src="%s" border="0" alt="image name" width="%s" height="%s" style="margin-top:%dpx;"/>', Context::getRequestUri().$image_name->file, $image_name->width, $image_name->height, $top_margin);
$text = sprintf('<img src="%s" border="0" alt="id: %s" title="id: %s" width="%s" height="%s" style="margin-top:%dpx;"/>', Context::getRequestUri().$image_name->file, htmlspecialchars($matches[5]), htmlspecialchars($matches[5]), $image_name->width, $image_name->height, $top_margin);
}
if($image_mark->width) {