diff options
author | Dries Buytaert <dries@buytaert.net> | 2003-01-27 19:37:07 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2003-01-27 19:37:07 +0000 |
commit | 4088adad1a3d23e17c80c7eb532d1221a549fb20 (patch) | |
tree | 1dc0fdb9b351ff07d5fffeba882cb0f8aa9b9038 /includes/common.inc | |
parent | 92b5fc369a17d39aa04c60071f64c246457d2d5a (diff) | |
download | brdo-4088adad1a3d23e17c80c7eb532d1221a549fb20.tar.gz brdo-4088adad1a3d23e17c80c7eb532d1221a549fb20.tar.bz2 |
- Fixed bug introduced by Moshe's common.inc patch; posting content would
cause "Array" to be displayed.
Diffstat (limited to 'includes/common.inc')
-rw-r--r-- | includes/common.inc | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/includes/common.inc b/includes/common.inc index 65f994db2..58acf513e 100644 --- a/includes/common.inc +++ b/includes/common.inc @@ -462,7 +462,14 @@ function check_input($text) { } function filter($text) { - return module_invoke_all("filter", $text);; + + foreach (module_list() as $name) { + if (module_hook($name, "filter")) { + $text = module_invoke($name, "filter", $text); + } + } + + return $text; } function rewrite_old_urls($text) { |