/** * Creates a link for all threads with the given ids. */ public static function createLinks($threadIDs, $boardID) { if (empty($threadIDs)) { return; } $sql = "SELECT\t*\n\t\t\tFROM \twbb" . WBB_N . "_thread\n\t\t\tWHERE \tthreadID IN (" . $threadIDs . ")\n\t\t\t\tAND boardID <> " . $boardID; $result = WCF::getDB()->sendQuery($sql); while ($row = WCF::getDB()->fetchArray($result)) { $thread = new ThreadEditor(null, $row); $thread->createLink(); } }