Add results_tl and handling in different files

This commit is contained in:
2018-04-03 18:43:39 +02:00
parent 6c06de3772
commit 511fab50b7
5 changed files with 24 additions and 7 deletions

View File

@@ -389,7 +389,6 @@ while ($row = $db->sql_fetchrow($result))
}
$db->sql_freeresult($result);
$sidename = sprintf($user->lang['RESULTS']);
switch ($league_info['bet_ko_type'])
{
case BET_KO_90:
@@ -410,8 +409,21 @@ switch ($league_info['bet_ko_type'])
break;
}
// set correct display for usage in menu template
if($side == 'results')
{
$display_results = true;
$sidename = sprintf($user->lang['RESULTS']);
}
if($side == 'results_tl')
{
$display_results_tl = true;
$sidename = sprintf($user->lang['RESULTS']);
}
$template->assign_vars(array(
'S_DISPLAY_RESULTS' => true,
'S_DISPLAY_RESULTS' => $display_results,
'S_DISPLAY_RESULTS_TL' => $display_results_tl,
'S_EXTRA_RESULTS' => $extra_results,
'S_SIDENAME' => $sidename,
'RESULT_EXPLAIN' => $result_explain,