aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/functions_template.php
diff options
context:
space:
mode:
authorMeik Sievertsen <acydburn@phpbb.com>2006-11-10 13:49:52 +0000
committerMeik Sievertsen <acydburn@phpbb.com>2006-11-10 13:49:52 +0000
commit3d0759974b3679aa75f23840e0b2f7c725091560 (patch)
treea64df09fffc666a99f171237f4d262493e88e26b /phpBB/includes/functions_template.php
parent805af6f437c393f520cda114c94fad8c96e6085c (diff)
downloadforums-3d0759974b3679aa75f23840e0b2f7c725091560.tar
forums-3d0759974b3679aa75f23840e0b2f7c725091560.tar.gz
forums-3d0759974b3679aa75f23840e0b2f7c725091560.tar.bz2
forums-3d0759974b3679aa75f23840e0b2f7c725091560.tar.xz
forums-3d0759974b3679aa75f23840e0b2f7c725091560.zip
- some fixes
- added script for easy adjustement of username_clean column within the users table (please see the note i added to the utf8_clean_string() function) git-svn-id: file:///svn/phpbb/trunk@6561 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes/functions_template.php')
-rw-r--r--phpBB/includes/functions_template.php24
1 files changed, 12 insertions, 12 deletions
diff --git a/phpBB/includes/functions_template.php b/phpBB/includes/functions_template.php
index 8dce06c0c7..47ff906a28 100644
--- a/phpBB/includes/functions_template.php
+++ b/phpBB/includes/functions_template.php
@@ -549,7 +549,7 @@ class template_compile
*/
function compile_tag_include_php($tag_args)
{
- return "include('" . $this->template->root . '/' . $tag_args . "');";
+ return "include('" . $tag_args . "');";
}
/**
@@ -559,7 +559,7 @@ class template_compile
*/
function _parse_is_expr($is_arg, $tokens)
{
- $expr_end = 0;
+ $expr_end = 0;
$negate_expr = false;
if (($first_token = array_shift($tokens)) == 'not')
@@ -578,12 +578,12 @@ class template_compile
if (@$tokens[$expr_end] == 'by')
{
$expr_end++;
- $expr_arg = $tokens[$expr_end++];
- $expr = "!(($is_arg / $expr_arg) % $expr_arg)";
+ $expr_arg = $tokens[$expr_end++];
+ $expr = "!(($is_arg / $expr_arg) % $expr_arg)";
}
else
{
- $expr = "!($is_arg % 2)";
+ $expr = "!($is_arg % 2)";
}
break;
@@ -591,12 +591,12 @@ class template_compile
if (@$tokens[$expr_end] == 'by')
{
$expr_end++;
- $expr_arg = $tokens[$expr_end++];
- $expr = "(($is_arg / $expr_arg) % $expr_arg)";
+ $expr_arg = $tokens[$expr_end++];
+ $expr = "(($is_arg / $expr_arg) % $expr_arg)";
}
else
{
- $expr = "($is_arg % 2)";
+ $expr = "($is_arg % 2)";
}
break;
@@ -604,18 +604,18 @@ class template_compile
if (@$tokens[$expr_end] == 'by')
{
$expr_end++;
- $expr_arg = $tokens[$expr_end++];
- $expr = "!($is_arg % $expr_arg)";
+ $expr_arg = $tokens[$expr_end++];
+ $expr = "!($is_arg % $expr_arg)";
}
break;
}
if ($negate_expr)
{
- $expr = "!($expr)";
+ $expr = "!($expr)";
}
- array_splice($tokens, 0, $expr_end, $expr);
+ array_splice($tokens, 0, $expr_end, $expr);
return $tokens;
}