removed 'is_escaper' option for filters (a left over from the previous version)

This commit is contained in:
Fabien Potencier
2010-12-14 16:38:11 +01:00
parent 20970419b4
commit 148f82115e
2 changed files with 3 additions and 10 deletions
+1
View File
@@ -15,6 +15,7 @@ Backward incompatibilities:
Changes:
* removed 'is_escaper' option for filters (a left over from the previous version) -- you must use 'is_safe' now instead
* fixed usage of operators as method names (like is, in, and not)
* changed the order of execution for node visitors
* fixed default() filter behavior when used with strict_variables set to on
+2 -10
View File
@@ -23,12 +23,8 @@ abstract class Twig_Filter implements Twig_FilterInterface
{
$this->options = array_merge(array(
'needs_environment' => false,
'pre_escape' => null,
), $options);
if (isset($this->options['is_escaper'])) {
$this->options['is_safe'] = array('html');
unset($this->options['is_escaper']);
}
}
public function needsEnvironment()
@@ -51,10 +47,6 @@ abstract class Twig_Filter implements Twig_FilterInterface
public function getPreEscape()
{
if (isset($this->options['pre_escape'])) {
return $this->options['pre_escape'];
}
return null;
return $this->options['pre_escape'];
}
}