mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-31 22:10:45 +02:00
[feature/twig] template->cachepath is now private, missed checking tests
PHPBB3-11598
This commit is contained in:
@@ -371,9 +371,11 @@ class phpbb_template_template_test extends phpbb_template_template_test_case
|
||||
|
||||
public function test_php()
|
||||
{
|
||||
global $phpbb_root_path;
|
||||
|
||||
$template_text = '<!-- PHP -->echo "test";<!-- ENDPHP -->';
|
||||
|
||||
$cache_dir = dirname($this->template->cachepath) . '/';
|
||||
$cache_dir = dirname($phpbb_root_path . 'cache') . '/';
|
||||
$fp = fopen($cache_dir . 'php.html', 'w');
|
||||
fputs($fp, $template_text);
|
||||
fclose($fp);
|
||||
|
Reference in New Issue
Block a user