Context::getUrl()의 변경에 따라 글/댓글/엮인글 주소 및 카페 주소에 대해 http로 시작하는 값을 구해서 사용하도록 수정

git-svn-id: http://xe-core.googlecode.com/svn/sandbox@6468 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
zero 2009-06-03 05:37:54 +00:00
parent 4fccef5401
commit b05a9f5431
5 changed files with 14 additions and 4 deletions

View file

@ -255,7 +255,9 @@
}
function getPermanentUrl() {
return getUrl('','document_srl',$this->get('document_srl')).'#comment_'.$this->get('comment_srl');
$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;
}