mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-05 10:54:27 +02:00
- bugfix clearCompiledTemplate(), clearAll() and clear() should use realpath to avoid possible exception from RecursiveDirectoryIterator (Issue 171)
This commit is contained in:
@@ -1,6 +1,7 @@
|
|||||||
===== trunk =====
|
===== trunk =====
|
||||||
27.01.2014
|
27.01.2014
|
||||||
- bugfix $smarty->debugging = true; did show the variable of the $smarty object not the variables used in display() call (forum topic 24764)
|
- bugfix $smarty->debugging = true; did show the variable of the $smarty object not the variables used in display() call (forum topic 24764)
|
||||||
|
- bugfix clearCompiledTemplate(), clearAll() and clear() should use realpath to avoid possible exception from RecursiveDirectoryIterator (Issue 171)
|
||||||
|
|
||||||
26.01.2014
|
26.01.2014
|
||||||
- bugfix undo block nesting checks for {nocache} for reasons like forum topic 23280 (forum topic 24762)
|
- bugfix undo block nesting checks for {nocache} for reasons like forum topic 23280 (forum topic 24762)
|
||||||
|
@@ -139,7 +139,7 @@
|
|||||||
$_compile_id = isset($compile_id) ? preg_replace('![^\w\|]+!', '_', $compile_id) : null;
|
$_compile_id = isset($compile_id) ? preg_replace('![^\w\|]+!', '_', $compile_id) : null;
|
||||||
$_dir_sep = $smarty->use_sub_dirs ? '/' : '^';
|
$_dir_sep = $smarty->use_sub_dirs ? '/' : '^';
|
||||||
$_compile_id_offset = $smarty->use_sub_dirs ? 3 : 0;
|
$_compile_id_offset = $smarty->use_sub_dirs ? 3 : 0;
|
||||||
$_dir = $smarty->getCacheDir();
|
$_dir = realpath($smarty->getCacheDir());
|
||||||
$_dir_length = strlen($_dir);
|
$_dir_length = strlen($_dir);
|
||||||
if (isset($_cache_id)) {
|
if (isset($_cache_id)) {
|
||||||
$_cache_id_parts = explode('|', $_cache_id);
|
$_cache_id_parts = explode('|', $_cache_id);
|
||||||
|
@@ -182,7 +182,7 @@ class Smarty_Internal_Utility
|
|||||||
*/
|
*/
|
||||||
public static function clearCompiledTemplate($resource_name, $compile_id, $exp_time, Smarty $smarty)
|
public static function clearCompiledTemplate($resource_name, $compile_id, $exp_time, Smarty $smarty)
|
||||||
{
|
{
|
||||||
$_compile_dir = $smarty->getCompileDir();
|
$_compile_dir = realpath($smarty->getCompileDir());
|
||||||
$_compile_id = isset($compile_id) ? preg_replace('![^\w\|]+!', '_', $compile_id) : null;
|
$_compile_id = isset($compile_id) ? preg_replace('![^\w\|]+!', '_', $compile_id) : null;
|
||||||
$_dir_sep = $smarty->use_sub_dirs ? DS : '^';
|
$_dir_sep = $smarty->use_sub_dirs ? DS : '^';
|
||||||
if (isset($resource_name)) {
|
if (isset($resource_name)) {
|
||||||
|
Reference in New Issue
Block a user