mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-11 03:04:09 +02:00
[feature/twig] Fix BBCode parser
PHPBB3-11598
This commit is contained in:
@@ -147,4 +147,11 @@ interface phpbb_template
|
||||
* @return bool false on error, true on success
|
||||
*/
|
||||
public function alter_block_array($blockname, array $vararray, $key = false, $mode = 'insert');
|
||||
|
||||
/**
|
||||
* Get path to template for handle (required for BBCode parser)
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function get_source_file_for_handle($handle);
|
||||
}
|
||||
|
@@ -444,4 +444,14 @@ class phpbb_template_twig implements phpbb_template
|
||||
{
|
||||
return (isset($this->filenames[$handle])) ? $this->filenames[$handle] : $handle;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get path to template for handle (required for BBCode parser)
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function get_source_file_for_handle($handle)
|
||||
{
|
||||
return $this->twig->getLoader()->getCacheKey($this->get_filename_from_handle($handle));
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user