From 8593ee8d96540235c1e7a1fbbb8582c8ab5b1030 Mon Sep 17 00:00:00 2001 From: Meik Sievertsen Date: Fri, 9 Mar 2007 19:11:27 +0000 Subject: [PATCH] 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 --- phpBB/includes/acp/acp_styles.php | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/phpBB/includes/acp/acp_styles.php b/phpBB/includes/acp/acp_styles.php index 2a7b993cd9..2c7cdc2532 100644 --- a/phpBB/includes/acp/acp_styles.php +++ b/phpBB/includes/acp/acp_styles.php @@ -2993,9 +2993,20 @@ parse_css_file = {PARSE_CSS_FILE} switch ($mode) { 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 $sql_ary += array( - 'bbcode_bitfield' => TEMPLATE_BITFIELD, 'template_storedb' => $store_db ); break;