#18312659 관련 이미지 경로 수정.

git-svn-id: http://xe-core.googlecode.com/svn/sandbox@6793 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
misol 2009-09-18 14:55:23 +00:00
parent a35a849f04
commit 4a7507ac61

View file

@ -60,6 +60,15 @@
$src = str_replace('&', '&', $src);
if(!$alt) $alt = $src;
// 이미지 주소를 request uri가 포함된 주소로 변환 (rss출력, 등등을 위함)
$temp_src = explode('/', $src);
if(substr($src, 0,1)=='.') $src = Context::getRequestUri().substr($src, 2);
elseif(substr($src , 0, 1)=='/') {
if($_SERVER['HTTPS']=='on') $http_src = 'https://';
else $http_src = 'http://';
$src = $http_src.$_SERVER['HTTP_HOST'].$src;
}
elseif(!strpos($temp_src[0],':') && $src) $src = Context::getRequestUri().$src;
$attr_output = array();
$attr_output = array("src=\"".$src."\"");