Changeset 702 for trunk/forum/includes/bbcode.php
- Timestamp:
- Mar 31, 2010, 6:32:40 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/forum/includes/bbcode.php
r400 r702 3 3 * 4 4 * @package phpBB3 5 * @version $Id : bbcode.php 8953 2008-09-28 17:08:09Z acydburn$5 * @version $Id$ 6 6 * @copyright (c) 2005 phpBB Group 7 7 * @license http://opensource.org/licenses/gpl-license.php GNU Public License … … 129 129 function bbcode_cache_init() 130 130 { 131 global $ user, $phpbb_root_path;131 global $phpbb_root_path, $template, $user; 132 132 133 133 if (empty($this->template_filename)) … … 135 135 $this->template_bitfield = new bitfield($user->theme['bbcode_bitfield']); 136 136 $this->template_filename = $phpbb_root_path . 'styles/' . $user->theme['template_path'] . '/template/bbcode.html'; 137 137 138 138 if (!@file_exists($this->template_filename)) 139 139 { … … 266 266 $this->bbcode_cache[$bbcode_id] = array( 267 267 'preg' => array( 268 '!\[color=(#[0-9a-f]{ 6}|[a-z\-]+):$uid\](.*?)\[/color:$uid\]!is' => $this->bbcode_tpl('color', $bbcode_id),268 '!\[color=(#[0-9a-f]{3}|#[0-9a-f]{6}|[a-z\-]+):$uid\](.*?)\[/color:$uid\]!is' => $this->bbcode_tpl('color', $bbcode_id), 269 269 ) 270 270 ); … … 361 361 // to replace all {VARS} to corresponding backreferences 362 362 // Note that backreferences are numbered from bbcode_match 363 if (preg_match_all('/\{(URL|LOCAL_URL|EMAIL|TEXT|SIMPLETEXT|I DENTIFIER|COLOR|NUMBER)[0-9]*\}/', $rowset[$bbcode_id]['bbcode_match'], $m))363 if (preg_match_all('/\{(URL|LOCAL_URL|EMAIL|TEXT|SIMPLETEXT|INTTEXT|IDENTIFIER|COLOR|NUMBER)[0-9]*\}/', $rowset[$bbcode_id]['bbcode_match'], $m)) 364 364 { 365 365 foreach ($m[0] as $i => $tok) … … 411 411 { 412 412 global $user; 413 413 414 414 $bbcode_hardtpl = array( 415 415 'b_open' => '<span style="font-weight: bold">', … … 529 529 { 530 530 $tpl = 'olist_open'; 531 $type = ' arabic-numbers';531 $type = 'decimal'; 532 532 } 533 533 else 534 534 { 535 535 $tpl = 'olist_open'; 536 $type = ' arabic-numbers';536 $type = 'decimal'; 537 537 } 538 538
Note:
See TracChangeset
for help on using the changeset viewer.