mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-07 10:41:40 +09:00
#18074700 문서 Permanent 경로 문제 수정
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@6635 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
65985468ea
commit
8a15728a84
1 changed files with 5 additions and 1 deletions
|
|
@ -378,7 +378,11 @@
|
|||
|
||||
function getPermanentUrl() {
|
||||
$url = getUrl('','document_srl',$this->get('document_srl'));
|
||||
if(substr($url,0,1)=='/') $url = substr(Context::getRequestUri(),0,-1).$url;
|
||||
if(substr($url,0,1)=='/') {
|
||||
if($_SERVER['HTTPS']=='on') $http_url = 'https://';
|
||||
else $http_url = 'http://';
|
||||
$url = $http_url.$_SERVER['HTTP_HOST'].$url;
|
||||
}
|
||||
return $url;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue