public static function SetThreadId($thread_id)
 {
     if ($thread_id < 0) {
         WoW_Log::WriteError('%s : wrong thread ID (%d), unable to handle.', __METHOD__, $thread_id);
         return false;
     }
     $flags = DB::WoW()->selectCell("SELECT `flags` FROM `DBPREFIX_forum_threads` WHERE `thread_id` = %d", $thread_id);
     self::$active_thread_id = $thread_id;
     self::$active_thread_flags = $flags;
     return true;
 }