mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 06:08:52 +00:00
[feature/template-engine] Delete class_exists checks, rely on autoloading.
PHPBB3-9726
This commit is contained in:
parent
f29f32e0d6
commit
321ecf4273
1 changed files with 0 additions and 10 deletions
|
@ -380,11 +380,6 @@ class phpbb_template
|
|||
trigger_error("template->_tpl_load(): No file specified for handle $handle", E_USER_ERROR);
|
||||
}
|
||||
|
||||
if (!class_exists('phpbb_template_compile'))
|
||||
{
|
||||
include 'template_compile.php';
|
||||
}
|
||||
|
||||
$compile = new phpbb_template_compile($this);
|
||||
|
||||
if ($compile->_tpl_load_file($handle) === false)
|
||||
|
@ -404,11 +399,6 @@ class phpbb_template
|
|||
*/
|
||||
private function _tpl_eval($handle)
|
||||
{
|
||||
if (!class_exists('phpbb_template_compile'))
|
||||
{
|
||||
include 'template_compile.php';
|
||||
}
|
||||
|
||||
$compile = new phpbb_template_compile($this);
|
||||
|
||||
// If we don't have a file assigned to this handle, die.
|
||||
|
|
Loading…
Add table
Reference in a new issue