diff --git a/classes/modules/comment/entity/TopicComment.entity.class.php b/classes/modules/comment/entity/TopicComment.entity.class.php index cf79576b..b8c12efe 100644 --- a/classes/modules/comment/entity/TopicComment.entity.class.php +++ b/classes/modules/comment/entity/TopicComment.entity.class.php @@ -90,16 +90,16 @@ class CommentEntity_TopicComment extends Entity } public function getBlogUrlFull() { if ($this->getBlogType()=='personal') { - return DIR_WEB_ROOT.'/my/'.$this->getBlogOwnerLogin().'/'; + return DIR_WEB_ROOT.'/'.ROUTE_PAGE_MY.'/'.$this->getBlogOwnerLogin().'/'; } else { - return DIR_WEB_ROOT.'/blog/'.$this->getBlogUrl().'/'; + return DIR_WEB_ROOT.'/'.ROUTE_PAGE_BLOG.'/'.$this->getBlogUrl().'/'; } } public function getTopicUrl() { if ($this->getBlogType()=='personal') { - return DIR_WEB_ROOT.'/blog/'.$this->getTopicId().'.html'; + return DIR_WEB_ROOT.'/'.ROUTE_PAGE_BLOG.'/'.$this->getTopicId().'.html'; } else { - return DIR_WEB_ROOT.'/blog/'.$this->getBlogUrl().'/'.$this->getTopicId().'.html'; + return DIR_WEB_ROOT.'/'.ROUTE_PAGE_BLOG.'/'.$this->getBlogUrl().'/'.$this->getTopicId().'.html'; } } public function getUserIsVote() { diff --git a/classes/modules/topic/entity/Topic.entity.class.php b/classes/modules/topic/entity/Topic.entity.class.php index c2c79a41..15cc1da0 100644 --- a/classes/modules/topic/entity/Topic.entity.class.php +++ b/classes/modules/topic/entity/Topic.entity.class.php @@ -119,16 +119,16 @@ class TopicEntity_Topic extends Entity public function getBlogUrlFull() { if ($this->getBlogType()=='personal') { - return DIR_WEB_ROOT.'/my/'.$this->getUserLogin().'/'; + return DIR_WEB_ROOT.'/'.ROUTE_PAGE_MY.'/'.$this->getUserLogin().'/'; } else { - return DIR_WEB_ROOT.'/blog/'.$this->getBlogUrl().'/'; + return DIR_WEB_ROOT.'/'.ROUTE_PAGE_BLOG.'/'.$this->getBlogUrl().'/'; } } public function getUrl() { if ($this->getBlogType()=='personal') { - return DIR_WEB_ROOT.'/blog/'.$this->getId().'.html'; + return DIR_WEB_ROOT.'/'.ROUTE_PAGE_BLOG.'/'.$this->getId().'.html'; } else { - return DIR_WEB_ROOT.'/blog/'.$this->getBlogUrl().'/'.$this->getId().'.html'; + return DIR_WEB_ROOT.'/'.ROUTE_PAGE_BLOG.'/'.$this->getBlogUrl().'/'.$this->getId().'.html'; } } public function getUserIsVote() {