문서,댓글 모듈의 getPermantUrl()이 새로 바뀐 getUrl() 함수의 의해 /로 시작하는 절대경로임에도 불구하고 host_name을 덧붙이려는 예전 코드가 있어 이를 삭제

git-svn-id: http://xe-core.googlecode.com/svn/sandbox@6780 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
zero 2009-09-09 07:01:44 +00:00
parent 2c52c7098b
commit fe51f74752
2 changed files with 2 additions and 10 deletions

View file

@ -255,9 +255,7 @@
}
function getPermanentUrl() {
$url = getUrl('','document_srl',$this->get('document_srl')).'#comment_'.$this->get('comment_srl');
if(substr($url,0,1)=='/') $url = substr(Context::getRequestUri(),0,-1).$url;
return $url;
return getUrl('','document_srl',$this->get('document_srl')).'#comment_'.$this->get('comment_srl');
}

View file

@ -377,13 +377,7 @@
}
function getPermanentUrl() {
$url = getUrl('','document_srl',$this->get('document_srl'));
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;
return getUrl('','document_srl',$this->get('document_srl'));
}
function getTrackbackUrl() {