Фикс дискуссии для удалённой темы:
В файле: /engine/bullet_energy/api/bullet_api.class.phpНайти:
public function setLinckDiscus($data = array())
{
...
}
Заменить на:
public function setLinckDiscus($data = array())
{
if($this->member_id['user_group'] == 5 or !isset($this->cache['template']['discussion']['tree'][$data['tree']])) {
return '' ;
}
if(empty($data['id'])) {
return '<a href="' . $this->link->discussion($data['idPost']) . '">' . $this->bullet_energy_lang['topic_148'][0] . '</a>' ;
} else {
//
$row = $this->db->super_query("SELECT reply_count, title FROM " . PREFIX . "_be_topic WHERE id = {$data['id']}") ;
if ( !$row ) {
$this->db->query("UPDATE " . PREFIX . "_post SET topic_id = 0 WHERE id = {$data['idPost']} LIMIT 1");
return '<a href="' . $this->link->discussion($data['idPost']) . '">' . $this->bullet_energy_lang['topic_148'][0] . '</a>' ;
}
else return $this->link->topic_linck($data['id'], totranslit($row['title'], true, true)) . $this->bullet_energy_lang['topic_148'][1] . '(' . $this->bullet_energy_lang['topic_148'][2] . $row['reply_count'] . ')' . '</a>' ;
}
}
Шик, блеск, красота.