mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-30 21:40:43 +02:00
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
This commit is contained in:
@@ -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 .= '<input type="hidden" name="sid" value="' . $SID . '" />';
|
||||
}
|
||||
|
||||
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;
|
||||
}
|
||||
|
||||
//
|
||||
|
Reference in New Issue
Block a user