mirror of
https://github.com/Oreolek/ifhub.club.git
synced 2024-07-01 05:55:02 +03:00
вынос констант
This commit is contained in:
parent
66aa0b086a
commit
2e8de5f0a0
|
@ -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() {
|
||||
|
|
|
@ -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() {
|
||||
|
|
Loading…
Reference in a new issue