From 7cfd4052c5a9f7f6caabd9a1fc734d7b9e838dcd Mon Sep 17 00:00:00 2001 From: Oleg Pudeyev Date: Sat, 13 Aug 2011 23:48:39 -0400 Subject: [PATCH] [feature/template-engine] Clean up template locator usage in bbcode. PHPBB3-9726 --- phpBB/includes/bbcode.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/phpBB/includes/bbcode.php b/phpBB/includes/bbcode.php index 482858446c..eeac98d3f3 100644 --- a/phpBB/includes/bbcode.php +++ b/phpBB/includes/bbcode.php @@ -136,9 +136,8 @@ class bbcode $template_locator = new phpbb_template_locator(); $template = new phpbb_template($phpbb_root_path, $phpEx, $config, $user, $template_locator); $template->set_template(); - $locator = $template->_get_locator(); - $locator->set_filenames(array('bbcode.html' => 'bbcode.html')); - $this->template_filename = $locator->get_source_file_for_handle('bbcode.html'); + $template_locator->set_filenames(array('bbcode.html' => 'bbcode.html')); + $this->template_filename = $template_locator->get_source_file_for_handle('bbcode.html'); } $bbcode_ids = $rowset = $sql = array();