/** * Get structured forums * * This is a temporary solultion * To be substituted with a new tree handler * * @int integer $pid parent forum ID * * @return array */ function newbb_getSubForum($pid = 0, $refresh = false) { static $list; if (!isset($list)) { require_once XOOPS_ROOT_PATH . '/Frameworks/art/functions.cache.php'; $list = mod_loadCacheFile("forum_sub", "newbb"); } if (!is_array($list) || $refresh) { $list = newbb_createSubForumList(); } if ($pid == 0) { return $list; } else { return @$list[$pid]; } }
/** * Get structured forums * * This is a temporary solultion * To be substituted with a new tree handler * * @int integer $pid parent forum ID * * @return array */ function newbb_getSubForum($pid = 0, $refresh = false) { static $list; if (!isset($list)) { load_functions("cache"); $list = mod_loadCacheFile("forum_sub", "newbb"); } if (!is_array($list) || $refresh) { $list = newbb_createSubForumList(); } if ($pid == 0) { return $list; } else { return @$list[$pid]; } }