mirror of
https://github.com/Oreolek/ifhub.club.git
synced 2024-06-16 23:00:51 +03:00
Topic fix + update framework
This commit is contained in:
parent
dc5521a3bd
commit
da9d6d3093
|
@ -488,7 +488,12 @@ class ModuleTopic_EntityTopic extends Entity {
|
|||
*/
|
||||
public function getTypeObject() {
|
||||
if (!$this->_getDataOne('type_object')) {
|
||||
$this->_aData['type_object']=$this->Topic_GetTopicTypeByCode($this->getType());
|
||||
/**
|
||||
* Сначала смотрим среди загруженых активных типов, если нет, то делаем запрос к БД
|
||||
*/
|
||||
if (!($this->_aData['type_object']=$this->Topic_GetTopicType($this->getType()))) {
|
||||
$this->_aData['type_object']=$this->Topic_GetTopicTypeByCode($this->getType());
|
||||
}
|
||||
}
|
||||
return $this->_getDataOne('type_object');
|
||||
}
|
||||
|
|
|
@ -1 +1 @@
|
|||
Subproject commit 2dfbfc1d9d20e3a9dce027fd078ed2d9297cb6fb
|
||||
Subproject commit 5d82ea62c8a1ee4accf850d7de3aa127c033d0f0
|
Loading…
Reference in a new issue