mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-04 18:34:27 +02:00
- bugfix convert each word of class names to ucfirst in in compiler. (forum topic 25588)
This commit is contained in:
@@ -1,4 +1,7 @@
|
||||
===== 3.1.28-dev===== (xx.xx.2015)
|
||||
08.07.2015
|
||||
- bugfix convert each word of class names to ucfirst in in compiler. (forum topic 25588)
|
||||
|
||||
07.07.2015
|
||||
- improvement allow fetch() or display() called on a template object to get output from other template
|
||||
like $template->fetch('foo.tpl') https://github.com/smarty-php/smarty/issues/70
|
||||
|
@@ -760,7 +760,9 @@ abstract class Smarty_Internal_TemplateCompilerBase
|
||||
// re-use object if already exists
|
||||
if (!isset($this->_tag_objects[$tag])) {
|
||||
// lazy load internal compiler plugin
|
||||
$class_name = 'Smarty_Internal_Compile_' . ucfirst($tag);
|
||||
$_tag=explode('_', $tag);
|
||||
$_tag=array_map(function($word) { return ucfirst($word); }, $_tag);
|
||||
$class_name = 'Smarty_Internal_Compile_' . implode('_',$_tag);
|
||||
if (class_exists($class_name) && (!isset($this->smarty->security_policy) || $this->smarty->security_policy->isTrustedTag($tag, $this))) {
|
||||
$this->_tag_objects[$tag] = new $class_name;
|
||||
} else {
|
||||
|
Reference in New Issue
Block a user