sefurl($params['page']); $structs = TikiLib::lib('struct')->get_page_structures($params['page']); if ($prefs['feature_wiki_open_as_structure'] === 'n' || count($structs) > 1) { $url .= (strpos($url, '?') === false ? '?' : '&') . 'structure=' . urlencode($params['structure']); } } if (isset($_REQUEST['no_bl']) && $_REQUEST['no_bl'] === 'y') { $url .= (strpos($url, '?') === false ? '?' : '&') . 'latest=1'; } } if ($prefs['page_n_times_in_a_structure'] == 'y') { $url .= (strpos($url, '?') === false ? '?' : '&') . 'page_ref_id=' . $params['page_ref_id']; } return $url; }