public static function InitForums($page = 1) { self::$page = $page; if (self::GetCategoryId() == 0 && self::GetThreadId() == 0) { self::LoadCategories(); } elseif (self::GetCategoryId() > 0 && self::GetThreadId() == 0) { self::LoadThreads($page); } elseif (self::GetCategoryId() == 0 && self::GetThreadId() > 0) { self::LoadThread($page); } else { WoW_Log::WriteError('%s : unhandled exception (category ID: %d, thread ID: %d)!', __METHOD__, self::GetCategoryId(), self::GetThreadId()); return false; } return true; }