mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-02 01:14:27 +02:00
@@ -6,6 +6,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|||||||
|
|
||||||
## [Unreleased]
|
## [Unreleased]
|
||||||
|
|
||||||
|
### Fixed
|
||||||
|
- Registered output filters wouldn't run [#899](https://github.com/smarty-php/smarty/issues/899)
|
||||||
|
|
||||||
|
### Removed
|
||||||
|
- Removed `$smarty->registered_filters` array
|
||||||
|
|
||||||
## [5.0.0-rc1] - 2023-08-08
|
## [5.0.0-rc1] - 2023-08-08
|
||||||
|
|
||||||
### Added
|
### Added
|
||||||
|
@@ -210,7 +210,6 @@ class Debug extends Data
|
|||||||
$debObj->error_reporting = E_ALL & ~E_NOTICE;
|
$debObj->error_reporting = E_ALL & ~E_NOTICE;
|
||||||
$debObj->debug_tpl = $smarty->debug_tpl ?? 'file:' . __DIR__ . '/../debug.tpl';
|
$debObj->debug_tpl = $smarty->debug_tpl ?? 'file:' . __DIR__ . '/../debug.tpl';
|
||||||
$debObj->registered_resources = array();
|
$debObj->registered_resources = array();
|
||||||
$debObj->registered_filters = array();
|
|
||||||
$debObj->escape_html = true;
|
$debObj->escape_html = true;
|
||||||
$debObj->caching = \Smarty::CACHING_OFF;
|
$debObj->caching = \Smarty::CACHING_OFF;
|
||||||
// prepare information of assigned variables
|
// prepare information of assigned variables
|
||||||
|
@@ -384,13 +384,6 @@ class Smarty extends \Smarty\TemplateBase {
|
|||||||
*/
|
*/
|
||||||
public $registered_classes = [];
|
public $registered_classes = [];
|
||||||
|
|
||||||
/**
|
|
||||||
* registered filters
|
|
||||||
*
|
|
||||||
* @var array
|
|
||||||
*/
|
|
||||||
public $registered_filters = [];
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* registered resources
|
* registered resources
|
||||||
*
|
*
|
||||||
|
@@ -196,7 +196,7 @@ class Template extends TemplateBase {
|
|||||||
);
|
);
|
||||||
} else {
|
} else {
|
||||||
if ((!$this->caching || $this->getCached()->getNocacheCode() || $this->getSource()->handler->recompiled)
|
if ((!$this->caching || $this->getCached()->getNocacheCode() || $this->getSource()->handler->recompiled)
|
||||||
&& !$no_output_filter && isset($this->smarty->registered_filters['output'])
|
&& !$no_output_filter
|
||||||
) {
|
) {
|
||||||
echo $this->smarty->runOutputFilters(ob_get_clean(), $this);
|
echo $this->smarty->runOutputFilters(ob_get_clean(), $this);
|
||||||
} else {
|
} else {
|
||||||
|
Reference in New Issue
Block a user