[feature/template-engine] Clean up template locator usage in bbcode.

PHPBB3-9726
This commit is contained in:
Oleg Pudeyev 2011-08-13 23:48:39 -04:00
parent fb8a1d999f
commit 7cfd4052c5

View file

@ -136,9 +136,8 @@ class bbcode
$template_locator = new phpbb_template_locator(); $template_locator = new phpbb_template_locator();
$template = new phpbb_template($phpbb_root_path, $phpEx, $config, $user, $template_locator); $template = new phpbb_template($phpbb_root_path, $phpEx, $config, $user, $template_locator);
$template->set_template(); $template->set_template();
$locator = $template->_get_locator(); $template_locator->set_filenames(array('bbcode.html' => 'bbcode.html'));
$locator->set_filenames(array('bbcode.html' => 'bbcode.html')); $this->template_filename = $template_locator->get_source_file_for_handle('bbcode.html');
$this->template_filename = $locator->get_source_file_for_handle('bbcode.html');
} }
$bbcode_ids = $rowset = $sql = array(); $bbcode_ids = $rowset = $sql = array();