Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
topic.php
1<?php
2
4
7
9{
10 public function headAction($topicId)
11 {
12 if (($topic = Forum\Topic::getById($topicId)) !== null)
13 {
14 global $USER;
15 $user = Forum\User::getById($USER->GetID());
16 if ($user->canReadTopic($topic))
17 {
18 return $topic->getData();
19 }
20 }
21 return null;
22 }
23}