aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/template.php
diff options
context:
space:
mode:
authorOleg Pudeyev <oleg@bsdpower.com>2011-05-01 04:00:24 -0400
committerOleg Pudeyev <oleg@bsdpower.com>2011-05-04 00:07:58 -0400
commit48691b53a6b3397ede4f009e8a108b14b7f7f305 (patch)
treed116d2299e7d5060964abe841f2f6e0a047167e7 /phpBB/includes/template.php
parentd840de560cc59cd9b6c7da7b794dc3b2756e7377 (diff)
downloadforums-48691b53a6b3397ede4f009e8a108b14b7f7f305.tar
forums-48691b53a6b3397ede4f009e8a108b14b7f7f305.tar.gz
forums-48691b53a6b3397ede4f009e8a108b14b7f7f305.tar.bz2
forums-48691b53a6b3397ede4f009e8a108b14b7f7f305.tar.xz
forums-48691b53a6b3397ede4f009e8a108b14b7f7f305.zip
[feature/template-engine] Rename template_compile methods for clarity.
PHPBB3-9726
Diffstat (limited to 'phpBB/includes/template.php')
-rw-r--r--phpBB/includes/template.php18
1 files changed, 9 insertions, 9 deletions
diff --git a/phpBB/includes/template.php b/phpBB/includes/template.php
index ac37dc3dd2..dc461fb60e 100644
--- a/phpBB/includes/template.php
+++ b/phpBB/includes/template.php
@@ -384,7 +384,7 @@ class phpbb_template
$compile = new phpbb_template_compile();
- if ($compile->compile_write($source_file, $this->_compiled_file_for_handle($handle)) === false)
+ if ($compile->compile_file_to_file($source_file, $this->_compiled_file_for_handle($handle)) === false)
{
return false;
}
@@ -443,7 +443,7 @@ class phpbb_template
$source_file = $this->_source_file_for_handle($handle);
- if (($code = $compile->compile_gen($source_file)) === false)
+ if (($code = $compile->compile_file($source_file)) === false)
{
return false;
}
@@ -509,13 +509,13 @@ class phpbb_template
{
if ($row['template_filename'] == $this->filename[$handle])
{
- $compile->compile_write($source_file, $this->_compiled_file_for_handle($handle));
+ $compile->compile_file_to_file($source_file, $this->_compiled_file_for_handle($handle));
}
else
{
$this->files[$row['template_filename']] = $file;
$this->filename[$row['template_filename']] = $row['template_filename'];
- $compile->compile_write($this->_source_file_for_handle($row['template_filename']), $this->_compiled_file_for_handle($row['template_filename']));
+ $compile->compile_file_to_file($this->_source_file_for_handle($row['template_filename']), $this->_compiled_file_for_handle($row['template_filename']));
unset($this->compiled_code[$row['template_filename']]);
unset($this->files[$row['template_filename']]);
unset($this->filename[$row['template_filename']]);
@@ -525,7 +525,7 @@ class phpbb_template
if ($row['template_filename'] == $this->filename[$handle])
{
$this->compiled_code[$handle] = $compile->compile(trim($row['template_data']));
- $compile->compile_write($handle, $this->compiled_code[$handle]);
+ $compile->compile_file_to_file($handle, $this->compiled_code[$handle]);
}
else
{
@@ -533,7 +533,7 @@ class phpbb_template
if (!file_exists($this->cachepath . str_replace('/', '.', $row['template_filename']) . '.' . $phpEx))
{
$this->filename[$row['template_filename']] = $row['template_filename'];
- $compile->compile_write($row['template_filename'], $compile->compile(trim($row['template_data'])));
+ $compile->compile_file_to_file($row['template_filename'], $compile->compile(trim($row['template_data'])));
unset($this->filename[$row['template_filename']]);
}
}
@@ -551,14 +551,14 @@ class phpbb_template
$this->files_template[$row['template_filename']] = $user->theme['template_inherits_id'];
}
// Try to load from filesystem and instruct to insert into the styles table...
- $compile->compile_write($source_file, $this->_compiled_file_for_handle($handle));
+ $compile->compile_file_to_file($source_file, $this->_compiled_file_for_handle($handle));
return false;
}
return false;
}
- $compile->compile_write($source_file, $this->_compiled_file_for_handle($handle));
+ $compile->compile_file_to_file($source_file, $this->_compiled_file_for_handle($handle));
return false;
}
@@ -838,7 +838,7 @@ class phpbb_template
$compile = new phpbb_template_compile();
$source_file = $this->_source_file_for_handle($handle);
- if (($code = $compile->compile_gen($source_file)) !== false)
+ if (($code = $compile->compile_file($source_file)) !== false)
{
$code = ' ?> ' . $code . ' <?php ';
eval($code);