aboutsummaryrefslogtreecommitdiffstats
path: root/vendor/smarty/smarty/libs/sysplugins/smarty_internal_runtime_cacheresourcefile.php
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/smarty/smarty/libs/sysplugins/smarty_internal_runtime_cacheresourcefile.php')
-rw-r--r--vendor/smarty/smarty/libs/sysplugins/smarty_internal_runtime_cacheresourcefile.php11
1 files changed, 6 insertions, 5 deletions
diff --git a/vendor/smarty/smarty/libs/sysplugins/smarty_internal_runtime_cacheresourcefile.php b/vendor/smarty/smarty/libs/sysplugins/smarty_internal_runtime_cacheresourcefile.php
index a9ff5789a..287096438 100644
--- a/vendor/smarty/smarty/libs/sysplugins/smarty_internal_runtime_cacheresourcefile.php
+++ b/vendor/smarty/smarty/libs/sysplugins/smarty_internal_runtime_cacheresourcefile.php
@@ -6,6 +6,7 @@
* @subpackage PluginsInternal
* @author Uwe Tews
*/
+
/**
* Smarty Internal Runtime Cache Resource File Class
*
@@ -41,7 +42,7 @@ class Smarty_Internal_Runtime_CacheResourceFile
$_cache_id_parts_count = count($_cache_id_parts);
if ($smarty->use_sub_dirs) {
foreach ($_cache_id_parts as $id_part) {
- $_dir .= $id_part . DIRECTORY_SEPARATOR;
+ $_dir .= $id_part . '/';
}
}
}
@@ -88,8 +89,8 @@ class Smarty_Internal_Runtime_CacheResourceFile
}
}
// check compile id
- if (isset($_compile_id) && (!isset($_parts[ $_parts_count - 2 - $_compile_id_offset ]) ||
- $_parts[ $_parts_count - 2 - $_compile_id_offset ] !== $_compile_id)
+ if (isset($_compile_id) && (!isset($_parts[ $_parts_count - 2 - $_compile_id_offset ])
+ || $_parts[ $_parts_count - 2 - $_compile_id_offset ] !== $_compile_id)
) {
continue;
}
@@ -126,7 +127,7 @@ class Smarty_Internal_Runtime_CacheResourceFile
&& (!function_exists('ini_get') || strlen(ini_get("opcache.restrict_api")) < 1)
) {
opcache_invalidate($_filepath, true);
- } else if (function_exists('apc_delete_file')) {
+ } elseif (function_exists('apc_delete_file')) {
apc_delete_file($_filepath);
}
}
@@ -135,4 +136,4 @@ class Smarty_Internal_Runtime_CacheResourceFile
}
return $_count;
}
-} \ No newline at end of file
+}