diff options
author | Ludovic Arnaud <ludovic_arnaud@users.sourceforge.net> | 2003-11-16 22:28:47 +0000 |
---|---|---|
committer | Ludovic Arnaud <ludovic_arnaud@users.sourceforge.net> | 2003-11-16 22:28:47 +0000 |
commit | 996acdeb6bd867e868f7ba2c35821dfd342a044a (patch) | |
tree | 7cfff91f93eba4b4885427681f6874e9a9ee9447 /phpBB/includes/bbcode.php | |
parent | f2650d1e63ac624ed2df91eb60861ff94aa3e4b6 (diff) | |
download | forums-996acdeb6bd867e868f7ba2c35821dfd342a044a.tar forums-996acdeb6bd867e868f7ba2c35821dfd342a044a.tar.gz forums-996acdeb6bd867e868f7ba2c35821dfd342a044a.tar.bz2 forums-996acdeb6bd867e868f7ba2c35821dfd342a044a.tar.xz forums-996acdeb6bd867e868f7ba2c35821dfd342a044a.zip |
Not even worth a log msg ;)
git-svn-id: file:///svn/phpbb/trunk@4670 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes/bbcode.php')
-rw-r--r-- | phpBB/includes/bbcode.php | 48 |
1 files changed, 24 insertions, 24 deletions
diff --git a/phpBB/includes/bbcode.php b/phpBB/includes/bbcode.php index a18a2c4942..5cc50c825b 100644 --- a/phpBB/includes/bbcode.php +++ b/phpBB/includes/bbcode.php @@ -125,7 +125,7 @@ class bbcode // do not try to re-cache it if it's already in continue; } - $bbcode_ids[$bbcode_id] = $bbcode_id; + $bbcode_ids[] = $bbcode_id; if ($bbcode_id > 11) { @@ -221,12 +221,12 @@ class bbcode case 9: $this->bbcode_cache[$bbcode_id] = array( 'str' => array( - '[list:$uid]' => $this->bbcode_tpl('ulist_open_default', $bbcode_id), - '[/list:u:$uid]' => $this->bbcode_tpl('ulist_close', $bbcode_id), - '[/list:o:$uid]' => $this->bbcode_tpl('olist_close', $bbcode_id), - '[*:$uid]' => $this->bbcode_tpl('listitem', $bbcode_id), - '[/*:$uid]' => $this->bbcode_tpl('listitem_close', $bbcode_id), - '[/*:m:$uid]' => $this->bbcode_tpl('listitem_close', $bbcode_id) + '[list:$uid]' => $this->bbcode_tpl('ulist_open_default', $bbcode_id), + '[/list:u:$uid]' => $this->bbcode_tpl('ulist_close', $bbcode_id), + '[/list:o:$uid]' => $this->bbcode_tpl('olist_close', $bbcode_id), + '[*:$uid]' => $this->bbcode_tpl('listitem', $bbcode_id), + '[/*:$uid]' => $this->bbcode_tpl('listitem_close', $bbcode_id), + '[/*:m:$uid]' => $this->bbcode_tpl('listitem_close', $bbcode_id) ), 'preg' => array( '#\[list=([^\[]+):$uid\]#e' => "\$this->bbcode_list('\$1')", @@ -320,17 +320,17 @@ class bbcode if (empty($bbcode_hardtpl)) { static $bbcode_hardtpl = array( - 'b_open' => '<span style="font-weight: bold">', - 'b_close' => '</span>', - 'i_open' => '<span style="font-style: italic">', - 'i_close' => '</span>', - 'u_open' => '<span style="text-decoration: underline">', - 'u_close' => '</span>', - 'url' => '<a href="$1" target="_blank">$2</a>', - 'img' => '<img src="$1" border="0" />', - 'size' => '<span style="font-size: $1px; line-height: normal">$2</span>', - 'color' => '<span style="color: $1">$2</span>', - 'email' => '<a href="mailto:$1">$2</a>' + 'b_open' => '<span style="font-weight: bold">', + 'b_close' => '</span>', + 'i_open' => '<span style="font-style: italic">', + 'i_close' => '</span>', + 'u_open' => '<span style="text-decoration: underline">', + 'u_close' => '</span>', + 'url' => '<a href="$1" target="_blank">$2</a>', + 'img' => '<img src="$1" border="0" />', + 'size' => '<span style="font-size: $1px; line-height: normal">$2</span>', + 'color' => '<span style="color: $1">$2</span>', + 'email' => '<a href="mailto:$1">$2</a>' ); } @@ -369,12 +369,12 @@ class bbcode { static $replacements = array( 'quote_username_open' => array('{USERNAME}' => '$1'), - 'color' => array('{COLOR}' => '$1', '{TEXT}' => '$2'), - 'size' => array('{SIZE}' => '$1', '{TEXT}' => '$2'), - 'img' => array('{URL}' => '$1'), - 'flash' => array('{WIDTH}' => '$1', '{HEIGHT}' => '$2', '{URL}' => '$3'), - 'url' => array('{URL}' => '$1', '{DESCRIPTION}' => '$2'), - 'email' => array('{EMAIL}' => '$1', '{DESCRIPTION}' => '$2') + 'color' => array('{COLOR}' => '$1', '{TEXT}' => '$2'), + 'size' => array('{SIZE}' => '$1', '{TEXT}' => '$2'), + 'img' => array('{URL}' => '$1'), + 'flash' => array('{WIDTH}' => '$1', '{HEIGHT}' => '$2', '{URL}' => '$3'), + 'url' => array('{URL}' => '$1', '{DESCRIPTION}' => '$2'), + 'email' => array('{EMAIL}' => '$1', '{DESCRIPTION}' => '$2') ); $tpl = preg_replace('/{L_([A-Z_]+)}/e', "(!empty(\$user->lang['\$1'])) ? \$user->lang['\$1'] : ucwords(strtolower(str_replace('_', ' ', '\$1')))", $tpl); |