mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-03 08:26:12 +02:00
Authorised by: acydburn git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@9623 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
phpBB
@ -38,15 +38,28 @@ switch ($mode)
|
||||
}
|
||||
|
||||
// Pull the array data from the lang pack
|
||||
$switch_column = $found_switch = false;
|
||||
$help_blocks = array();
|
||||
foreach ($user->help as $help_ary)
|
||||
{
|
||||
if ($help_ary[0] == '--')
|
||||
{
|
||||
$template->assign_block_vars('faq_block', array(
|
||||
'BLOCK_TITLE' => $help_ary[1])
|
||||
);
|
||||
if ($help_ary[1] == '--')
|
||||
{
|
||||
$switch_column = true;
|
||||
$found_switch = true;
|
||||
continue;
|
||||
}
|
||||
|
||||
$template->assign_block_vars('faq_block', array(
|
||||
'BLOCK_TITLE' => $help_ary[1],
|
||||
'SWITCH_COLUMN' => $switch_column,
|
||||
));
|
||||
|
||||
if ($switch_column)
|
||||
{
|
||||
$switch_column = false;
|
||||
}
|
||||
continue;
|
||||
}
|
||||
|
||||
@ -58,9 +71,11 @@ foreach ($user->help as $help_ary)
|
||||
|
||||
// Lets build a page ...
|
||||
$template->assign_vars(array(
|
||||
'L_FAQ_TITLE' => $l_title,
|
||||
'L_BACK_TO_TOP' => $user->lang['BACK_TO_TOP'])
|
||||
);
|
||||
'L_FAQ_TITLE' => $l_title,
|
||||
'L_BACK_TO_TOP' => $user->lang['BACK_TO_TOP'],
|
||||
|
||||
'SWITCH_COLUMN_MANUALLY' => (!$found_switch) ? true : false,
|
||||
));
|
||||
|
||||
page_header($l_title);
|
||||
|
||||
|
Reference in New Issue
Block a user