mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-08 19:21:40 +09:00
절대 경로로 작성된 이미지 경로 수정
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@6634 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
da1bca3159
commit
65985468ea
1 changed files with 5 additions and 1 deletions
|
|
@ -61,7 +61,11 @@
|
|||
// 이미지 주소를 request uri가 포함된 주소로 변환 (rss출력, 등등을 위함)
|
||||
$temp_src = explode('/', $src);
|
||||
if($temp_src[0]=='.') $src = Context::getRequestUri().substr($src, 2);
|
||||
elseif($temp_src[0]=='' && $src) $src = Context::getRequestUri().substr($src, 1);
|
||||
elseif($temp_src[0]=='' && $src) {
|
||||
if($_SERVER['HTTPS']=='on') $http_src = 'https://';
|
||||
else $http_src = 'http://';
|
||||
$src = $http_src.$_SERVER['HTTP_HOST'].$src;
|
||||
}
|
||||
if(!$alt) $alt = $src;
|
||||
|
||||
$attr_output = array();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue