From 4088adad1a3d23e17c80c7eb532d1221a549fb20 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Mon, 27 Jan 2003 19:37:07 +0000 Subject: - Fixed bug introduced by Moshe's common.inc patch; posting content would cause "Array" to be displayed. --- includes/common.inc | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'includes/common.inc') 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) { -- cgit v1.2.3