From e1f7400b8da1088ebabd351fe9b6e1f246c34531 Mon Sep 17 00:00:00 2001 From: "Paul S. Owen" Date: Sun, 31 Mar 2002 00:06:34 +0000 Subject: pre-freeze on main templates, various bug fixes (highlighting search results, various search related issues, blah blah). These updates need _thorough_ checking, quickly git-svn-id: file:///svn/phpbb/trunk@2448 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/includes/functions.php | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) (limited to 'phpBB/includes/functions.php') diff --git a/phpBB/includes/functions.php b/phpBB/includes/functions.php index 602d241578..8ae87f656f 100644 --- a/phpBB/includes/functions.php +++ b/phpBB/includes/functions.php @@ -90,9 +90,9 @@ function get_userdata($user) return ( $row = $db->sql_fetchrow($result) ) ? $row : false; } -function make_jumpbox($match_forum_id = 0) +function make_jumpbox($action, $match_forum_id = 0) { - global $lang, $db, $SID, $nav_links, $phpEx; + global $template, $lang, $db, $SID, $nav_links, $phpEx; $sql = "SELECT c.cat_id, c.cat_title, c.cat_order FROM " . CATEGORIES_TABLE . " c, " . FORUMS_TABLE . " f @@ -174,7 +174,20 @@ function make_jumpbox($match_forum_id = 0) $boxstring .= ''; } - return $boxstring; + $template->set_filenames(array( + 'jumpbox' => 'jumpbox.tpl') + ); + $template->assign_vars(array( + 'L_GO' => $lang['Go'], + 'L_JUMP_TO' => $lang['Jump_to'], + 'L_SELECT_FORUM' => $lang['Select_forum'], + + 'S_JUMPBOX_SELECT' => $boxstring, + 'S_JUMPBOX_ACTION' => append_sid($action)) + ); + $template->assign_var_from_handle('JUMPBOX', 'jumpbox'); + + return; } // -- cgit v1.2.1