r6780 rollback

git-svn-id: http://xe-core.googlecode.com/svn/sandbox@6781 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
zero 2009-09-10 04:06:53 +00:00
parent fe51f74752
commit 06b7cf0a3c
2 changed files with 6 additions and 2 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)=='/') return substr(Context::getRequestUri(),0,-1).$url;
return $url;
}

View file

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