mirror of
https://github.com/smarty-php/smarty.git
synced 2026-02-04 22:35:18 +01:00
- implementation of a 'variable' filter as replacement for default modifier
- update of unregister_....filter methods
This commit is contained in:
26
libs/sysplugins/method.disablevariablefilter.php
Normal file
26
libs/sysplugins/method.disablevariablefilter.php
Normal file
@@ -0,0 +1,26 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Smarty method disableVariableFilter
|
||||
*
|
||||
* Disable filter on variable output
|
||||
*
|
||||
* @package Smarty
|
||||
* @subpackage SmartyMethod
|
||||
* @author Uwe Tews
|
||||
*/
|
||||
|
||||
/**
|
||||
* Smarty class disableVariableFilter
|
||||
*
|
||||
* Disable filter on variable output
|
||||
*/
|
||||
class Smarty_Method_disableVariableFilter extends Smarty_Internal_Base {
|
||||
public function execute()
|
||||
{
|
||||
$this->smarty->variable_filter = false;
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
Reference in New Issue
Block a user