diff options
author | Marc Alexander <admin@m-a-styles.de> | 2017-11-16 21:56:57 +0100 |
---|---|---|
committer | Marc Alexander <admin@m-a-styles.de> | 2017-11-16 21:56:57 +0100 |
commit | 0517e43dff37fdc64167d0853cfc7ee0b77007b5 (patch) | |
tree | 0120055732a774d43ab1b4ad40919678c2d396eb /phpBB/includes/acp | |
parent | 1a1a2dc0466f6283c5c3a4c6a0ed4ca7c84b4777 (diff) | |
parent | 4bf0f4a50f34e00fb80299119f98c23ee426dc4d (diff) | |
download | forums-0517e43dff37fdc64167d0853cfc7ee0b77007b5.tar forums-0517e43dff37fdc64167d0853cfc7ee0b77007b5.tar.gz forums-0517e43dff37fdc64167d0853cfc7ee0b77007b5.tar.bz2 forums-0517e43dff37fdc64167d0853cfc7ee0b77007b5.tar.xz forums-0517e43dff37fdc64167d0853cfc7ee0b77007b5.zip |
Merge pull request #4976 from rubencm/ticket/15171
[ticket/15171] Replace all BBCode templates by default
Diffstat (limited to 'phpBB/includes/acp')
-rw-r--r-- | phpBB/includes/acp/acp_styles.php | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/phpBB/includes/acp/acp_styles.php b/phpBB/includes/acp/acp_styles.php index 5b31417b83..4c390c5f0e 100644 --- a/phpBB/includes/acp/acp_styles.php +++ b/phpBB/includes/acp/acp_styles.php @@ -1355,18 +1355,18 @@ class acp_styles } // Hardcoded template bitfield to add for new templates + $default_bitfield = '1111111111111'; + $bitfield = new bitfield(); - $bitfield->set(0); - $bitfield->set(1); - $bitfield->set(2); - $bitfield->set(3); - $bitfield->set(4); - $bitfield->set(8); - $bitfield->set(9); - $bitfield->set(11); - $bitfield->set(12); - $value = $bitfield->get_base64(); - return $value; + for ($i = 0; $i < strlen($default_bitfield); $i++) + { + if ($default_bitfield[$i] == '1') + { + $bitfield->set($i); + } + } + + return $bitfield->get_base64(); } } |