You can still enable the sandbox by setting sandbox=true within the include tag. In fact you shouldn't do it anyway unless you have a real good reason ;)
unset($args['append']);
}
- $sandbox = true;
+ $sandbox = false;
if (isset($args['sandbox'])) {
$sandbox = $args['sandbox'];
unset($args['sandbox']);
$phpCode .= "ob_start();\n";
}
- $phpCode .= '$this->includeTemplate('.$file.', array('.$argString.'), ('.$sandbox.' ? 1 : 0), $this->v[\'__PACKAGE_ID\']);'."\n";
+ $phpCode .= '$this->includeTemplate('.$file.', array('.$argString.'), '.($sandbox ? 1 : 0).', $this->v[\'__PACKAGE_ID\']);'."\n";
if ($assignVar !== false) {
$phpCode .= '$this->'.($append ? 'append' : 'assign').'('.$assignVar.', ob_get_clean());'."\n";