/**
  * Disables the threads with the given thread ids.
  */
 public static function disableAll($threadIDs, $disablePosts = true)
 {
     if (empty($threadIDs)) {
         return;
     }
     // disable thread
     $sql = "UPDATE \twbb" . WBB_N . "_thread\n\t\t\tSET\tisDeleted = 0,\n\t\t\t\tisDisabled = 1\n\t\t\tWHERE \tthreadID IN (" . $threadIDs . ")";
     WCF::getDB()->sendQuery($sql);
     // disable post
     if ($disablePosts) {
         PostEditor::disableAll(self::getAllPostIDs($threadIDs));
     }
 }