private static function HandleCategoryThreads()
 {
     if (!is_array(self::$category_threads)) {
         return false;
     }
     $threads = array('featured' => array(), 'sticky' => array(), 'regular' => array());
     foreach (self::$category_threads as $thread) {
         if (mb_strlen($thread['message']) > 250) {
             $thread['message_short'] = str_replace('\\"', '"', mb_substr($thread['message'], 0, 250)) . '…';
         } else {
             $thread['message_short'] = str_replace('\\"', '"', $thread['message']);
         }
         $thread['author'] = $thread['blizzpost'] == 1 ? '<span class="type-blizzard">' . $thread['author'] . ' <img src="/wow/static/images/layout/cms/icon_blizzard.gif" alt="" /></span>' : $thread['author'];
         $thread['last_author'] = $thread['last_blizzpost'] == 1 ? '<span class="type-blizzard">' . $thread['last_post_author'] . ' <img src="/wow/static/images/layout/cms/icon_blizzard.gif" alt="" /></span>' : $thread['last_post_author'];
         $thread['closed'] = $thread['flags'] & THREAD_FLAG_CLOSED ? true : false;
         if ($thread['flags'] & THREAD_FLAG_FEATURED) {
             $threads['featured'][] = $thread;
         } elseif ($thread['flags'] & THREAD_FLAG_PINNED) {
             $threads['sticky'][] = $thread;
         } else {
             $threads['regular'][] = $thread;
         }
     }
     self::$category_threads = $threads;
     unset($threads, $thread);
     return true;
 }