Skip to content

Commit

Permalink
-bugfix Only variables should be assigned by reference #227
Browse files Browse the repository at this point in the history
  • Loading branch information
uwetews committed May 7, 2016
1 parent f02f943 commit 608064e
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
5 changes: 4 additions & 1 deletion change_log.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
 ===== 3.1.30-dev ===== (xx.xx.xx)
02.05.2026
07.05.2016
-bugfix Only variables should be assigned by reference https://github.com/smarty-php/smarty/issues/227

02.05.2016
- enhancement {block} tag names can now be variable https://github.com/smarty-php/smarty/issues/221

01.05.2016
Expand Down
2 changes: 1 addition & 1 deletion libs/Smarty.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ class Smarty extends Smarty_Internal_TemplateBase
/**
* smarty version
*/
const SMARTY_VERSION = '3.1.30-dev/66';
const SMARTY_VERSION = '3.1.30-dev/67';

/**
* define variable scopes
Expand Down
2 changes: 1 addition & 1 deletion libs/plugins/shared.mb_str_replace.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ function smarty_mb_str_replace($search, $replace, $subject, &$count = 0)
if (is_array($subject)) {
// call mb_replace for each single string in $subject
foreach ($subject as &$string) {
$string = &smarty_mb_str_replace($search, $replace, $string, $c);
$string = smarty_mb_str_replace($search, $replace, $string, $c);
$count += $c;
}
} elseif (is_array($search)) {
Expand Down

0 comments on commit 608064e

Please sign in to comment.