X-Git-Url: https://git.harvie.cz/?a=blobdiff_plain;f=wwwroot%2Fsmarty%2Flibs%2Finternals%2Fcore.process_cached_inserts.php;h=1d78edd937a587cf793a4d74a2bd65560b440563;hb=9b7c11be09e7a553b26667f673c6315209ddc210;hp=29cb007eb1d3eb945d960776d18aa475de4afa55;hpb=95a6ccc277bc41d750ced09fe5a1a779bde342c7;p=mirrors%2FKyberia-bloodline.git diff --git a/wwwroot/smarty/libs/internals/core.process_cached_inserts.php b/wwwroot/smarty/libs/internals/core.process_cached_inserts.php index 29cb007..1d78edd 100644 --- a/wwwroot/smarty/libs/internals/core.process_cached_inserts.php +++ b/wwwroot/smarty/libs/internals/core.process_cached_inserts.php @@ -52,7 +52,7 @@ function smarty_core_process_cached_inserts($params, &$smarty) $replace = ''; } - $params['results'] = str_replace($cached_inserts[$i], $replace, $params['results']); + $params['results'] = substr_replace($params['results'], $replace, strpos($params['results'], $cached_inserts[$i]), strlen($cached_inserts[$i])); if ($smarty->debugging) { $_params = array(); require_once(SMARTY_CORE_DIR . 'core.get_microtime.php');