Skip to content

Commit

Permalink
fixed literal bug (#12)
Browse files Browse the repository at this point in the history
Co-authored-by: Yuri.Bushenko <[email protected]>
  • Loading branch information
Nastro and Yuri.Bushenko authored Jan 23, 2024
1 parent fd37633 commit 1c4b4cb
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# Change log

## [3.0.4] 2024-01-23
- Исправлена ошибка в Smarty при использовании {literal}

## [3.0.3] 2023-12-14
- Исправлена ошибка в Smarty при использовании функции addTemplateFunction
- Исправлена ошибка в AuditLogModule
Expand Down
2 changes: 1 addition & 1 deletion lib/common.version.inc
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
<?php

define('PP_VERSION', 'v3.0.3');
define('PP_VERSION', 'v3.0.4');
5 changes: 4 additions & 1 deletion vendor/Smarty/Smarty_Compiler.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -557,7 +557,10 @@ public function _compile_tag($template_tag)

case 'php':
/* handle folded tags replaced by {php} */
$block = current($this->_folded_blocks);
if (!$block = current($this->_folded_blocks)) {
break;
}
next($this->_folded_blocks);
$this->_current_line_no += substr_count($block[0], "\n");
/* the number of matched elements in the regexp in _compile_file()
determins the type of folded tag that was found */
Expand Down

0 comments on commit 1c4b4cb

Please sign in to comment.