Add results_tl and handling in different files
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user