mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-02 14:57:37 +02:00
[feature/template-engine] Delete class_exists checks, rely on autoloading.
PHPBB3-9726
This commit is contained in:
@@ -380,11 +380,6 @@ class phpbb_template
|
|||||||
trigger_error("template->_tpl_load(): No file specified for handle $handle", E_USER_ERROR);
|
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);
|
$compile = new phpbb_template_compile($this);
|
||||||
|
|
||||||
if ($compile->_tpl_load_file($handle) === false)
|
if ($compile->_tpl_load_file($handle) === false)
|
||||||
@@ -404,11 +399,6 @@ class phpbb_template
|
|||||||
*/
|
*/
|
||||||
private function _tpl_eval($handle)
|
private function _tpl_eval($handle)
|
||||||
{
|
{
|
||||||
if (!class_exists('phpbb_template_compile'))
|
|
||||||
{
|
|
||||||
include 'template_compile.php';
|
|
||||||
}
|
|
||||||
|
|
||||||
$compile = new phpbb_template_compile($this);
|
$compile = new phpbb_template_compile($this);
|
||||||
|
|
||||||
// If we don't have a file assigned to this handle, die.
|
// If we don't have a file assigned to this handle, die.
|
||||||
|
Reference in New Issue
Block a user