mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-12 06:18:52 +00:00
[feature/template-engine] Try to handle failed template includes.
PHPBB3-9726
This commit is contained in:
parent
7638bcb560
commit
d2daaf0317
1 changed files with 3 additions and 2 deletions
|
@ -508,7 +508,8 @@ class phpbb_template
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
// What should we do here?
|
// trigger_error cannot be used here, as the output already started
|
||||||
|
echo 'template->_tpl_include(): Failed including ' . htmlspecialchars($handle) . "\n";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -525,7 +526,7 @@ class phpbb_template
|
||||||
if (!file_exists($file))
|
if (!file_exists($file))
|
||||||
{
|
{
|
||||||
// trigger_error cannot be used here, as the output already started
|
// trigger_error cannot be used here, as the output already started
|
||||||
echo 'template->_php_include(): File ' . htmlspecialchars($file) . ' does not exist or is empty';
|
echo 'template->_php_include(): File ' . htmlspecialchars($file) . " does not exist\n";
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
include($file);
|
include($file);
|
||||||
|
|
Loading…
Add table
Reference in a new issue