Fixed Code in XenForo_ControllerPublic_Forum

xf_phantom

Well-known member
Line 109 is:

PHP:
$fetchElements = $this->_getThreadFetchElements(
       $forum, $displayConditions,
       $threadsPerPage, $page, $order, $orderDirection
     );

If you look at _getThreadFetchElements , you'll see that the method has only 2 arguments
PHP:
protected function _getThreadFetchElements(array $forum, array $displayConditions)
   {

It's not throwing an error and we can access the vars via func_get_args BUT that's really ugly AND can break if any addon uses/sends some other arguments after the 2 official arguments


Bug?
Intention?
Only strange code in my environment?
 
Back
Top Bottom