1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Implemented ThreadModel::prepareThreadConditions

Discussion in 'Closed Suggestions' started by xf_phantom, Apr 16, 2013.

  1. xf_phantom

    xf_phantom Well-Known Member

    It would be nice if you would include more thread fields to the conditions to avoid C&P code.

    e.g. i've just checked my addons and seen that i have 5 addons extending the thread model and adding reply_count to the conditions.

    (!empty($conditions['reply_count']) && is_array($conditions['reply_count']))
    $operator$cutOff) = $conditions['reply_count'];
    $sqlCondition "( thread.reply_count $operator " $db->quote($cutOff) . ')';
    Bob likes this.
  2. Mike

    Mike XenForo Developer Staff Member

    1.2 has a bunch of additional conditions. :)
    Chris D, Bob, Pereira and 3 others like this.

Share This Page