only some space/tab changes as well as removing my debug code from the template file. ;)

git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@8761 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
Meik Sievertsen 2008-08-16 13:03:00 +00:00
parent 3a2f8753f6
commit da65cd1397
4 changed files with 14 additions and 57 deletions

View file

@ -53,6 +53,7 @@
<ol>
<li><a href="#changelog">Changelog</a>
<ol style="list-style-type: lower-roman;">
<li><a href="#v302">Changes since 3.0.2</a></li>
<li><a href="#v301">Changes since 3.0.1</a></li>
<li><a href="#v300">Changes since 3.0.0</a></li>
<li><a href="#v30rc8">Changes since RC-8</a></li>

View file

@ -518,50 +518,6 @@ class template_compile
else if (!empty($token))
{
$token = '(' . $token . ')';
/**
* If we need to really secure the usage, or force specific types on specific operations... the following would be the code
if (!isset($tokens[$i - 1]))
{
unset($tokens[$i]);
break;
}
$prev_token = trim($tokens[$i - 1]);
switch ($prev_token)
{
// Integer
case '<':
case '>':
case '<=':
case '>=':
case '%':
$token = ( ((double) $token) != 0) ? (double) $token : (int) $token;
break;
case '==':
case '!=':
$int_token = (((double) $token) != 0) ? (double) $token : (int) $token;
if ($int_token && $int_token == $token)
{
$token = $int_token;
break;
}
// It is a string...
$token = '(' . $token . ')';
break;
case '!':
case '||':
case '&&':
default:
unset($tokens[$i]);
break;
break;
}
*/
}
break;