- remove no longer used code

This commit is contained in:
uwetews
2015-12-19 21:35:24 +01:00
parent 116c0caa5b
commit d11956fc78
3 changed files with 2 additions and 22 deletions

View File

@@ -2,6 +2,7 @@
19.12.2015 19.12.2015
- bugfix using $smarty.capture.foo in expressions could fail https://github.com/smarty-php/smarty/pull/138 - bugfix using $smarty.capture.foo in expressions could fail https://github.com/smarty-php/smarty/pull/138
- bugfix broken PHP 5.2 compatibility - bugfix broken PHP 5.2 compatibility
- remove no longer used code
18.12.2015 18.12.2015
- bugfix regression when modifier parameter was follow by math https://github.com/smarty-php/smarty/issues/132 - bugfix regression when modifier parameter was follow by math https://github.com/smarty-php/smarty/issues/132

View File

@@ -73,7 +73,7 @@ class Smarty_Internal_Runtime_UpdateCache
/** /**
* Cache was invalid , so render from compiled and write to cache * Cache was invalid , so render from compiled and write to cache
* *
* @param \Smarty_Template_Cached $cached * @param \Smarty_Template_Cached $cached
* @param \Smarty_Internal_Template $_template * @param \Smarty_Internal_Template $_template
* @param $no_output_filter * @param $no_output_filter
@@ -129,20 +129,6 @@ class Smarty_Internal_Runtime_UpdateCache
return false; return false;
} }
$content = $_template->smarty->ext->_codeFrame->create($_template, $content, '', true); $content = $_template->smarty->ext->_codeFrame->create($_template, $content, '', true);
if (!empty($_template->cached->tpl_function)) {
foreach ($_template->cached->tpl_function as $funcParam) {
if (is_file($funcParam['compiled_filepath'])) {
// read compiled file
$code = file_get_contents($funcParam['compiled_filepath']);
// grab template function
if (preg_match("/\/\* {$funcParam['call_name']} \*\/([\S\s]*?)\/\*\/ {$funcParam['call_name']} \*\//",
$code, $match)) {
unset($code);
$content .= "<?php " . $match[0] . "?>\n";
}
}
}
}
return $this->write($cached, $_template, $content); return $this->write($cached, $_template, $content);
} }

View File

@@ -79,13 +79,6 @@ abstract class Smarty_Template_Resource_Base
*/ */
public $required_plugins = array(); public $required_plugins = array();
/**
* Known template functions
*
* @var array
*/
public $tpl_function = array();
/** /**
* Included subtemplates * Included subtemplates
* *