mirror of
https://github.com/vichan-devel/vichan.git
synced 2025-01-22 19:32:04 +01:00
template.php: fix deprecated string interning syntax
This commit is contained in:
parent
03a875f663
commit
9a014e8557
@ -58,7 +58,7 @@ function Element($templateFile, array $options) {
|
||||
}
|
||||
|
||||
// Read the template file
|
||||
if (@file_get_contents("{$config['dir']['template']}/${templateFile}")) {
|
||||
if (@file_get_contents("{$config['dir']['template']}/{$templateFile}")) {
|
||||
$body = $twig->render($templateFile, $options);
|
||||
|
||||
if ($config['minify_html'] && preg_match('/\.html$/', $templateFile)) {
|
||||
@ -67,7 +67,7 @@ function Element($templateFile, array $options) {
|
||||
|
||||
return $body;
|
||||
} else {
|
||||
throw new Exception("Template file '${templateFile}' does not exist or is empty in '{$config['dir']['template']}'!");
|
||||
throw new Exception("Template file '{$templateFile}' does not exist or is empty in '{$config['dir']['template']}'!");
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user