Skip to content

Commit

Permalink
- bugfix {block}{/block} tags did not work inside double quoted issues
Browse files Browse the repository at this point in the history
  • Loading branch information
uwetews committed Mar 17, 2015
1 parent e7ad590 commit 6df84b6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion libs/Smarty.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ class Smarty extends Smarty_Internal_TemplateBase
/**
* smarty version
*/
const SMARTY_VERSION = '3.1.22-dev/11';
const SMARTY_VERSION = '3.1.22-dev/12';

/**
* define variable scopes
Expand Down
2 changes: 1 addition & 1 deletion libs/sysplugins/smarty_internal_parsetree_tag.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ public function to_smarty_php()
public function assign_to_var()
{
$var = sprintf('$_tmp%d', ++ Smarty_Internal_Templateparser::$prefix_number);
$this->parser->compiler->prefix_code[] = sprintf("<?php ob_start();\n%s\n%s=ob_get_clean();?>", preg_replace(array('/^\s*<\?php\s+/', '/\s*\?>\s*$/'), '', $this->data), $var);
$this->parser->compiler->prefix_code[] = sprintf("<?php ob_start();?>\n%s\n<?php %s=ob_get_clean();?>", $this->data, $var);

return $var;
}
Expand Down

0 comments on commit 6df84b6

Please sign in to comment.