1
0
Fork 0
mirror of https://github.com/Oreolek/ifhub.club.git synced 2024-07-01 05:55:02 +03:00

вынос констант

This commit is contained in:
Mzhelskiy Maxim 2009-05-02 07:34:49 +00:00
parent 66aa0b086a
commit 2e8de5f0a0
2 changed files with 8 additions and 8 deletions

View file

@ -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() {

View file

@ -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() {