mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-13 04:04:12 +02:00
[feature/twig] Fix includephp_from_subdir_test.php
PHPBB3-11598
This commit is contained in:
@@ -105,9 +105,13 @@ class phpbb_template_template_test_case extends phpbb_test_case
|
||||
$this->template->destroy_block_vars($block);
|
||||
}
|
||||
|
||||
foreach ($lang_vars as $name => $value)
|
||||
// Previous functionality was $cachefile (string), which was removed, check to prevent errors
|
||||
if (is_array($lang_vars))
|
||||
{
|
||||
$this->user->lang[$name] = $value;
|
||||
foreach ($lang_vars as $name => $value)
|
||||
{
|
||||
$this->user->lang[$name] = $value;
|
||||
}
|
||||
}
|
||||
|
||||
$expected = str_replace(array("\n", "\r", "\t"), '', $expected);
|
||||
|
Reference in New Issue
Block a user