backed out _smarty_cached_paths-file-handling

This commit is contained in:
messju
2003-09-15 14:30:57 +00:00
parent 7c38847c69
commit 6988b4747e
3 changed files with 2 additions and 80 deletions

View File

@@ -1,29 +0,0 @@
<?php
/**
* Smarty plugin
* @package Smarty
* @subpackage plugins
*/
/**
* write out the cached paths file
*
* @param integer $exp_time
* @return boolean
*/
function smarty_core_write_cache_paths_file($params, &$smarty)
{
if (!isset($smarty->_cache_paths_file)) {
return false;
}
$_compiled_content = function_exists('var_export') ? var_export($smarty->_cache_paths, true) : "unserialize('" . serialize($smarty->_cache_paths) . "')";
$_compiled_content = '<?php $this->_cache_paths = ' . $_compiled_content . '; ?>';
$_params = array('compile_path' => $smarty->_cache_paths_file, 'compiled_content' => $_compiled_content, 'resource_timestamp' => time());
require_once(SMARTY_DIR . 'core' . DIRECTORY_SEPARATOR . 'core.write_compiled_resource.php');
return smarty_core_write_compiled_resource($_params, $smarty);
}
/* vim: set expandtab: */
?>