mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 22:28:51 +00:00
allow the template bitfield being specified by the author if he do not want to use some hardcoded tpl bits...
git-svn-id: file:///svn/phpbb/trunk@7158 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
d165af785d
commit
8593ee8d96
1 changed files with 12 additions and 1 deletions
|
@ -2993,9 +2993,20 @@ parse_css_file = {PARSE_CSS_FILE}
|
||||||
switch ($mode)
|
switch ($mode)
|
||||||
{
|
{
|
||||||
case 'template':
|
case 'template':
|
||||||
|
// We check if the template author defined a different bitfield
|
||||||
|
$cfg_data = parse_cfg_file("$root_path$mode/template.cfg");
|
||||||
|
|
||||||
|
if (!empty($cfg_data['template_bitfield']))
|
||||||
|
{
|
||||||
|
$sql_ary['bbcode_bitfield'] = $cfg_data['template_bitfield'];
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
$sql_ary['bbcode_bitfield'] = TEMPLATE_BITFIELD;
|
||||||
|
}
|
||||||
|
|
||||||
// We set a pre-defined bitfield here which we may use further in 3.2
|
// We set a pre-defined bitfield here which we may use further in 3.2
|
||||||
$sql_ary += array(
|
$sql_ary += array(
|
||||||
'bbcode_bitfield' => TEMPLATE_BITFIELD,
|
|
||||||
'template_storedb' => $store_db
|
'template_storedb' => $store_db
|
||||||
);
|
);
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Add table
Reference in a new issue