1
0
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:
Nathaniel Guse
2013-07-01 13:06:37 -05:00
parent 341bae40eb
commit 6f925552a5
2 changed files with 7 additions and 5 deletions

View File

@@ -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);