aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/bbcode.php
diff options
context:
space:
mode:
authorMeik Sievertsen <acydburn@phpbb.com>2005-11-30 17:48:06 +0000
committerMeik Sievertsen <acydburn@phpbb.com>2005-11-30 17:48:06 +0000
commit1bf18e23edb13b2d3014c4509e4d1b15ddc274fe (patch)
treedfbf1798248969f0ac79842d4f0dc449a36f6cd2 /phpBB/includes/bbcode.php
parentba6f40ce2542b87c7110dd9e38e4c0386b22da81 (diff)
downloadforums-1bf18e23edb13b2d3014c4509e4d1b15ddc274fe.tar
forums-1bf18e23edb13b2d3014c4509e4d1b15ddc274fe.tar.gz
forums-1bf18e23edb13b2d3014c4509e4d1b15ddc274fe.tar.bz2
forums-1bf18e23edb13b2d3014c4509e4d1b15ddc274fe.tar.xz
forums-1bf18e23edb13b2d3014c4509e4d1b15ddc274fe.zip
- added acp_language (language pack management)
- minor adjustments to cope with PHP5.x git-svn-id: file:///svn/phpbb/trunk@5315 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes/bbcode.php')
-rw-r--r--phpBB/includes/bbcode.php18
1 files changed, 9 insertions, 9 deletions
diff --git a/phpBB/includes/bbcode.php b/phpBB/includes/bbcode.php
index b559800b65..a550bd40c3 100644
--- a/phpBB/includes/bbcode.php
+++ b/phpBB/includes/bbcode.php
@@ -323,7 +323,7 @@ class bbcode
}
else
{
- $this->bbcode_cache[$bbcode_id] = FALSE;
+ $this->bbcode_cache[$bbcode_id] = false;
}
}
}
@@ -349,7 +349,7 @@ class bbcode
if ($bbcode_id != -1 && !($this->template_bitfield & (1 << $bbcode_id)))
{
- return (isset($bbcode_hardtpl[$tpl_name])) ? $bbcode_hardtpl[$tpl_name] : FALSE;
+ return (isset($bbcode_hardtpl[$tpl_name])) ? $bbcode_hardtpl[$tpl_name] : false;
}
if (empty($this->bbcode_template))
@@ -375,7 +375,7 @@ class bbcode
eval($tpl);
}
- return (isset($this->bbcode_template[$tpl_name])) ? $this->bbcode_template[$tpl_name] : ((isset($bbcode_hardtpl[$tpl_name])) ? $bbcode_hardtpl[$tpl_name] : FALSE);
+ return (isset($this->bbcode_template[$tpl_name])) ? $this->bbcode_template[$tpl_name] : ((isset($bbcode_hardtpl[$tpl_name])) ? $bbcode_hardtpl[$tpl_name] : false);
}
function bbcode_tpl_replace($tpl_name, $tpl)
@@ -410,37 +410,37 @@ class bbcode
$type = 'default';
$start = 0;
}
- elseif ($type == 'i')
+ else if ($type == 'i')
{
$tpl = 'olist_open';
$type = 'lower-roman';
$start = 1;
}
- elseif ($type == 'I')
+ else if ($type == 'I')
{
$tpl = 'olist_open';
$type = 'upper-roman';
$start = 1;
}
- elseif (preg_match('#^(disc|circle|square)$#i', $type))
+ else if (preg_match('#^(disc|circle|square)$#i', $type))
{
$tpl = 'ulist_open';
$type = strtolower($type);
$start = 1;
}
- elseif (preg_match('#^[a-z]$#', $type))
+ else if (preg_match('#^[a-z]$#', $type))
{
$tpl = 'olist_open';
$type = 'lower-alpha';
$start = ord($type) - 96;
}
- elseif (preg_match('#[A-Z]#', $type))
+ else if (preg_match('#[A-Z]#', $type))
{
$tpl = 'olist_open';
$type = 'upper-alpha';
$start = ord($type) - 64;
}
- elseif (is_numeric($type))
+ else if (is_numeric($type))
{
$tpl = 'olist_open';
$type = 'arabic-numbers';