From: Tim Düsterhus Date: Tue, 29 Jul 2014 17:12:56 +0000 (+0200) Subject: Fix static includes in combination with dynamic template name X-Git-Tag: 2.1.0_Alpha_1~508 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=f020c2483f5920a95c1a85bdc39198690e3a8eb1;p=GitHub%2FWoltLab%2FWCF.git Fix static includes in combination with dynamic template name --- diff --git a/wcfsetup/install/files/lib/system/template/TemplateScriptingCompiler.class.php b/wcfsetup/install/files/lib/system/template/TemplateScriptingCompiler.class.php index 16021b3328..9fbd048d0d 100644 --- a/wcfsetup/install/files/lib/system/template/TemplateScriptingCompiler.class.php +++ b/wcfsetup/install/files/lib/system/template/TemplateScriptingCompiler.class.php @@ -759,7 +759,7 @@ class TemplateScriptingCompiler { $sandbox = ($sandbox === 'true' || $sandbox === true || $sandbox == 1); $staticInclude = true; - if ($sandbox || $assignVar !== false || $once !== false || strpos($application, '$') !== false) { + if ($sandbox || $assignVar !== false || $once !== false || strpos($application, '$') !== false || strpos($file, '$') !== false) { $staticInclude = false; }