aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB
diff options
context:
space:
mode:
authorMeik Sievertsen <acydburn@phpbb.com>2007-03-09 19:11:27 +0000
committerMeik Sievertsen <acydburn@phpbb.com>2007-03-09 19:11:27 +0000
commit8593ee8d96540235c1e7a1fbbb8582c8ab5b1030 (patch)
tree20c94d940da8b0fcd5fae5cde689c40ac3d0e99e /phpBB
parentd165af785d01640a82d6d8076fbb979b00a1ec38 (diff)
downloadforums-8593ee8d96540235c1e7a1fbbb8582c8ab5b1030.tar
forums-8593ee8d96540235c1e7a1fbbb8582c8ab5b1030.tar.gz
forums-8593ee8d96540235c1e7a1fbbb8582c8ab5b1030.tar.bz2
forums-8593ee8d96540235c1e7a1fbbb8582c8ab5b1030.tar.xz
forums-8593ee8d96540235c1e7a1fbbb8582c8ab5b1030.zip
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
Diffstat (limited to 'phpBB')
-rw-r--r--phpBB/includes/acp/acp_styles.php13
1 files changed, 12 insertions, 1 deletions
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;