1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-16 21:54:00 +02:00

Well, here are all my changes ... don't blame me if things break :D

git-svn-id: file:///svn/phpbb/trunk@2923 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
Paul S. Owen
2002-10-04 13:09:10 +00:00
parent b5bbc005a5
commit 30aeac65dc
63 changed files with 2217 additions and 2728 deletions

View File

@@ -138,11 +138,7 @@ class Template {
}
$str = '';
while ( !feof($fp) )
{
$str .= fread($fp, 4096);
}
$str = fread($fp, filesize($this->files[$handle]));
@fclose($fp);
$this->uncompiled_code[$handle] = trim($str);
@@ -177,6 +173,7 @@ class Template {
echo $db->sql_report;
return TRUE;
}
$_str = '';
if (!$this->compile_load($_str, $handle, true))
@@ -186,9 +183,7 @@ class Template {
message_die("Template->pparse(): Couldn't load template file for handle $handle");
}
//
// Actually compile the code now.
//
$this->compiled_code[$handle] = $this->compile($this->uncompiled_code[$handle]);
$this->compile_write($handle, $this->compiled_code[$handle]);
@@ -561,9 +556,7 @@ class Template {
return "include('" . $this->root . '/' . $tag_args . "');\n";
}
//
// This is from Smarty
//
function _parse_is_expr($is_arg, $tokens)
{
$expr_end = 0;
@@ -697,9 +690,7 @@ class Template {
$filename = $this->cachedir . $this->filename[$handle] . '.' . $phpEx;
//
// Recompile page if the original template is newer, otherwise load the compiled version
//
if ( file_exists($filename) && @filemtime($filename) >= @filemtime($this->files[$handle]) )
{
$_str = '';