mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-05 02:44:27 +02:00
- 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:
@@ -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
|
||||||
|
@@ -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);
|
||||||
}
|
}
|
||||||
|
@@ -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());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -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)) {
|
||||||
|
Reference in New Issue
Block a user