mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-04 18:34:27 +02:00
- remove no longer used code
This commit is contained in:
@@ -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
|
||||||
|
@@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -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
|
||||||
*
|
*
|
||||||
|
Reference in New Issue
Block a user