mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-02 01:52:10 +09:00
#18312659 관련 이미지 경로 수정.
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@6793 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
a35a849f04
commit
4a7507ac61
1 changed files with 9 additions and 0 deletions
|
|
@ -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."\"");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue