mirror of
https://github.com/Oreolek/ifhub.club.git
synced 2024-07-03 06:55:03 +03:00
вынос констант
This commit is contained in:
parent
66aa0b086a
commit
2e8de5f0a0
|
@ -90,16 +90,16 @@ class CommentEntity_TopicComment extends Entity
|
||||||
}
|
}
|
||||||
public function getBlogUrlFull() {
|
public function getBlogUrlFull() {
|
||||||
if ($this->getBlogType()=='personal') {
|
if ($this->getBlogType()=='personal') {
|
||||||
return DIR_WEB_ROOT.'/my/'.$this->getBlogOwnerLogin().'/';
|
return DIR_WEB_ROOT.'/'.ROUTE_PAGE_MY.'/'.$this->getBlogOwnerLogin().'/';
|
||||||
} else {
|
} else {
|
||||||
return DIR_WEB_ROOT.'/blog/'.$this->getBlogUrl().'/';
|
return DIR_WEB_ROOT.'/'.ROUTE_PAGE_BLOG.'/'.$this->getBlogUrl().'/';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
public function getTopicUrl() {
|
public function getTopicUrl() {
|
||||||
if ($this->getBlogType()=='personal') {
|
if ($this->getBlogType()=='personal') {
|
||||||
return DIR_WEB_ROOT.'/blog/'.$this->getTopicId().'.html';
|
return DIR_WEB_ROOT.'/'.ROUTE_PAGE_BLOG.'/'.$this->getTopicId().'.html';
|
||||||
} else {
|
} 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() {
|
public function getUserIsVote() {
|
||||||
|
|
|
@ -119,16 +119,16 @@ class TopicEntity_Topic extends Entity
|
||||||
|
|
||||||
public function getBlogUrlFull() {
|
public function getBlogUrlFull() {
|
||||||
if ($this->getBlogType()=='personal') {
|
if ($this->getBlogType()=='personal') {
|
||||||
return DIR_WEB_ROOT.'/my/'.$this->getUserLogin().'/';
|
return DIR_WEB_ROOT.'/'.ROUTE_PAGE_MY.'/'.$this->getUserLogin().'/';
|
||||||
} else {
|
} else {
|
||||||
return DIR_WEB_ROOT.'/blog/'.$this->getBlogUrl().'/';
|
return DIR_WEB_ROOT.'/'.ROUTE_PAGE_BLOG.'/'.$this->getBlogUrl().'/';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
public function getUrl() {
|
public function getUrl() {
|
||||||
if ($this->getBlogType()=='personal') {
|
if ($this->getBlogType()=='personal') {
|
||||||
return DIR_WEB_ROOT.'/blog/'.$this->getId().'.html';
|
return DIR_WEB_ROOT.'/'.ROUTE_PAGE_BLOG.'/'.$this->getId().'.html';
|
||||||
} else {
|
} 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() {
|
public function getUserIsVote() {
|
||||||
|
|
Loading…
Reference in a new issue