- تاریخ ثبتنام
- 2020-06-26
- نوشتهها
- 25,483
- راهحلها
- 27
- پسندها
- 3,278
- امتیازها
- 113
- سن
- 29
- محل سکونت
- England
- وب سایت
- xenforo.xyz
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"] +...