Ignore:
Timestamp:
Mar 31, 2010, 6:32:40 PM (14 years ago)
Author:
george
Message:
  • Upraveno: Aktualizace fóra.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/forum/includes/bbcode.php

    r400 r702  
    33*
    44* @package phpBB3
    5 * @version $Id: bbcode.php 8953 2008-09-28 17:08:09Z acydburn $
     5* @version $Id$
    66* @copyright (c) 2005 phpBB Group
    77* @license http://opensource.org/licenses/gpl-license.php GNU Public License
     
    129129        function bbcode_cache_init()
    130130        {
    131                 global $user, $phpbb_root_path;
     131                global $phpbb_root_path, $template, $user;
    132132
    133133                if (empty($this->template_filename))
     
    135135                        $this->template_bitfield = new bitfield($user->theme['bbcode_bitfield']);
    136136                        $this->template_filename = $phpbb_root_path . 'styles/' . $user->theme['template_path'] . '/template/bbcode.html';
    137                        
     137
    138138                        if (!@file_exists($this->template_filename))
    139139                        {
     
    266266                                        $this->bbcode_cache[$bbcode_id] = array(
    267267                                                '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),
    269269                                                )
    270270                                        );
     
    361361                                                                // to replace all {VARS} to corresponding backreferences
    362362                                                                // Note that backreferences are numbered from bbcode_match
    363                                                                 if (preg_match_all('/\{(URL|LOCAL_URL|EMAIL|TEXT|SIMPLETEXT|IDENTIFIER|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))
    364364                                                                {
    365365                                                                        foreach ($m[0] as $i => $tok)
     
    411411                {
    412412                        global $user;
    413                        
     413
    414414                        $bbcode_hardtpl = array(
    415415                                'b_open'        => '<span style="font-weight: bold">',
     
    529529                {
    530530                        $tpl = 'olist_open';
    531                         $type = 'arabic-numbers';
     531                        $type = 'decimal';
    532532                }
    533533                else
    534534                {
    535535                        $tpl = 'olist_open';
    536                         $type = 'arabic-numbers';
     536                        $type = 'decimal';
    537537                }
    538538
Note: See TracChangeset for help on using the changeset viewer.