mirror of
https://github.com/phpbb/phpbb.git
synced 2025-02-25 04:23:38 +01:00
Merge remote-tracking branch 'EXreaction/ticket/11664' into develop
* EXreaction/ticket/11664: [ticket/11664] Stop creating php.html file in root path in tests
This commit is contained in:
commit
e9eeff8b38
@ -39,7 +39,7 @@ class phpbb_template_includephp_test extends phpbb_template_template_test_case
|
||||
$this->assertTrue(phpbb_is_absolute($path_to_php));
|
||||
$template_text = "Path is absolute.\n<!-- INCLUDEPHP $path_to_php -->";
|
||||
|
||||
$cache_dir = dirname($phpbb_root_path . 'cache') . '/';
|
||||
$cache_dir = $phpbb_root_path . 'cache/';
|
||||
$fp = fopen($cache_dir . 'includephp_absolute.html', 'w');
|
||||
fputs($fp, $template_text);
|
||||
fclose($fp);
|
||||
|
@ -403,7 +403,7 @@ class phpbb_template_template_test extends phpbb_template_template_test_case
|
||||
|
||||
$template_text = '<!-- PHP -->echo "test";<!-- ENDPHP -->';
|
||||
|
||||
$cache_dir = dirname($phpbb_root_path . 'cache') . '/';
|
||||
$cache_dir = $phpbb_root_path . 'cache/';
|
||||
$fp = fopen($cache_dir . 'php.html', 'w');
|
||||
fputs($fp, $template_text);
|
||||
fclose($fp);
|
||||
|
Loading…
x
Reference in New Issue
Block a user