From 9b20e26885611bbb708bc800b126b72cbe523ed2 Mon Sep 17 00:00:00 2001 From: mohrt Date: Thu, 2 May 2002 14:34:35 +0000 Subject: [PATCH] fix register_outputfilter function --- FAQ | 2 +- Smarty.class.php | 2 +- libs/Smarty.class.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/FAQ b/FAQ index b2032ba3..1f0e63b8 100644 --- a/FAQ +++ b/FAQ @@ -6,7 +6,7 @@ GENERAL Q: What is Smarty? Q: What's the difference between Smarty and other template engines? Q: What do you mean "Compiled PHP Scripts" ? -Q: Why can't I just use APC (or Zend Cache)? +Q: Why can't I just use PHPA (http://php-accelerator.co.uk) or Zend Cache? Q: Why does smarty have a built in cache? Wouldn't it be better to handle this in a separate class? Q: Is Smarty faster than ? diff --git a/Smarty.class.php b/Smarty.class.php index b32f7d12..92864eed 100644 --- a/Smarty.class.php +++ b/Smarty.class.php @@ -410,7 +410,7 @@ class Smarty \*======================================================================*/ function register_outputfilter($function) { - $this->_plugins['postfilter'][$function] + $this->_plugins['outputfilter'][$function] = array($function, null, null, false); } diff --git a/libs/Smarty.class.php b/libs/Smarty.class.php index b32f7d12..92864eed 100644 --- a/libs/Smarty.class.php +++ b/libs/Smarty.class.php @@ -410,7 +410,7 @@ class Smarty \*======================================================================*/ function register_outputfilter($function) { - $this->_plugins['postfilter'][$function] + $this->_plugins['outputfilter'][$function] = array($function, null, null, false); }