- bugfix typo in Smarty_Internal_Get_IncludePath did cause runtime overhead (Issue 74)

- improvment remove unneeded assigments (Issue 75 and 76)
This commit is contained in:
uwe.tews@googlemail.com
2012-01-20 14:47:01 +00:00
parent b38be6edaa
commit c352723ec9
4 changed files with 12 additions and 11 deletions

View File

@@ -1,5 +1,9 @@
===== trunk ===== ===== trunk =====
02.01.2011 13.01.2012
- bugfix typo in Smarty_Internal_Get_IncludePath did cause runtime overhead (Issue 74)
- improvment remove unneeded assigments (Issue 75 and 76)
02.01.2012
- bugfix {block foo nocache} did not load plugins within child {block} in nocache mode (Forum Topic 20753) - bugfix {block foo nocache} did not load plugins within child {block} in nocache mode (Forum Topic 20753)
29.12.2011 29.12.2011

View File

@@ -230,7 +230,6 @@ abstract class Smarty_CacheResource_Custom extends Smarty_CacheResource {
{ {
$cached->is_locked = false; $cached->is_locked = false;
$id = $cached->filepath;
$name = $cached->source->name . '.lock'; $name = $cached->source->name . '.lock';
$this->delete($name, null, null, null); $this->delete($name, null, null, null);
} }

View File

@@ -25,7 +25,7 @@ class Smarty_Internal_Get_Include_Path {
{ {
static $_include_path = null; static $_include_path = null;
if ($_path_array === null) { if ($_include_path === null) {
$_include_path = explode(PATH_SEPARATOR, get_include_path()); $_include_path = explode(PATH_SEPARATOR, get_include_path());
} }

View File

@@ -211,8 +211,6 @@ class Smarty_Internal_Utility {
$_resource_part_2 = str_replace('.php','.cache.php',$_resource_part_1); $_resource_part_2 = str_replace('.php','.cache.php',$_resource_part_1);
$_resource_part_2_length = strlen($_resource_part_2); $_resource_part_2_length = strlen($_resource_part_2);
} else {
$_resource_part = '';
} }
$_dir = $_compile_dir; $_dir = $_compile_dir;
if ($smarty->use_sub_dirs && isset($_compile_id)) { if ($smarty->use_sub_dirs && isset($_compile_id)) {