#18074700 문서 Permanent 경로 문제 수정

git-svn-id: http://xe-core.googlecode.com/svn/sandbox@6635 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
misol 2009-06-22 06:29:35 +00:00
parent 65985468ea
commit 8a15728a84

View file

@ -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;
}