mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-05 02:44:27 +02:00
-bugfix Only variables should be assigned by reference https://github.com/smarty-php/smarty/issues/227
This commit is contained in:
@@ -1,5 +1,8 @@
|
|||||||
===== 3.1.30-dev ===== (xx.xx.xx)
|
===== 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
|
- enhancement {block} tag names can now be variable https://github.com/smarty-php/smarty/issues/221
|
||||||
|
|
||||||
01.05.2016
|
01.05.2016
|
||||||
|
@@ -121,7 +121,7 @@ class Smarty extends Smarty_Internal_TemplateBase
|
|||||||
/**
|
/**
|
||||||
* smarty version
|
* smarty version
|
||||||
*/
|
*/
|
||||||
const SMARTY_VERSION = '3.1.30-dev/66';
|
const SMARTY_VERSION = '3.1.30-dev/67';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* define variable scopes
|
* define variable scopes
|
||||||
|
@@ -26,7 +26,7 @@ if (!function_exists('smarty_mb_str_replace')) {
|
|||||||
if (is_array($subject)) {
|
if (is_array($subject)) {
|
||||||
// call mb_replace for each single string in $subject
|
// call mb_replace for each single string in $subject
|
||||||
foreach ($subject as &$string) {
|
foreach ($subject as &$string) {
|
||||||
$string = &smarty_mb_str_replace($search, $replace, $string, $c);
|
$string = smarty_mb_str_replace($search, $replace, $string, $c);
|
||||||
$count += $c;
|
$count += $c;
|
||||||
}
|
}
|
||||||
} elseif (is_array($search)) {
|
} elseif (is_array($search)) {
|
||||||
|
Reference in New Issue
Block a user