ENXF NET
Administrator
Staff member
Administrator
Moderator
+Lifetime VIP+
S.V.I.P.S Member
S.V.I.P Member
V.I.P Member
Collaborate
Registered
- Joined
- Nov 13, 2018
- Messages
- 32,747
- Points
- 823
Reputation:
XF\ForumType\DiscussionHandler::addTypeConfigToApiResult() builds the API's allowed_thread_types with the array union operator: 'allowed_thread_types' => [$this->getDefaultThreadType($forum)] + $forum->type_config['allowed_thread_types'],+ keeps the left operand's keys and only adds keys the left side doesn't have. type_config['allowed_thread_types'] is a compact, 0-indexed list, so key 0 — the first enabled extra thread type — is always discarded:PHP:
["discussion"] +...Read more
Continue reading...