mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-07 10:41:40 +09:00
문서,댓글 모듈의 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:
parent
2c52c7098b
commit
fe51f74752
2 changed files with 2 additions and 10 deletions
|
|
@ -255,9 +255,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
function getPermanentUrl() {
|
function getPermanentUrl() {
|
||||||
$url = getUrl('','document_srl',$this->get('document_srl')).'#comment_'.$this->get('comment_srl');
|
return 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;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -377,13 +377,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
function getPermanentUrl() {
|
function getPermanentUrl() {
|
||||||
$url = getUrl('','document_srl',$this->get('document_srl'));
|
return 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;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function getTrackbackUrl() {
|
function getTrackbackUrl() {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue