mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-05 00:07:44 +02:00
- ok, get away with the secondary style approach (styles can be mixed together easily with the acp)
- introduce a more generic approach of defining some additional variables through cfg files as well as the name, copyright and version fields - please note that at the moment this is in flux. I added it now for Tom because he needs the theme parameters. git-svn-id: file:///svn/phpbb/trunk@5372 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
@@ -103,20 +103,8 @@ class bbcode
|
||||
|
||||
if (empty($this->template_filename))
|
||||
{
|
||||
$style = 'primary';
|
||||
if (!empty($user->theme['secondary']))
|
||||
{
|
||||
// If the primary style has custom templates for BBCodes then we'll make sure
|
||||
// the bbcode.html file is present, otherwise we'll use the secondary style
|
||||
|
||||
if ($this->bbcode_bitfield & $user->theme['primary']['bbcode_bitfield'])
|
||||
{
|
||||
$style = (file_exists($phpbb_root_path . 'styles/' . $user->theme['primary']['template_path'] . '/template/bbcode.html')) ? 'primary' : 'secondary';
|
||||
}
|
||||
}
|
||||
|
||||
$this->template_bitfield = $user->theme[$style]['bbcode_bitfield'];
|
||||
$this->template_filename = $phpbb_root_path . 'styles/' . $user->theme[$style]['template_path'] . '/template/bbcode.html';
|
||||
$this->template_bitfield = $user->theme['bbcode_bitfield'];
|
||||
$this->template_filename = $phpbb_root_path . 'styles/' . $user->theme['template_path'] . '/template/bbcode.html';
|
||||
}
|
||||
|
||||
$sql = '';
|
||||
|
Reference in New Issue
Block a user