Index: d6_compat.inc
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/advanced_forum/d6_compat.inc,v
retrieving revision 1.7
diff -u -p -r1.7 d6_compat.inc
--- d6_compat.inc	8 Oct 2008 17:09:21 -0000	1.7
+++ d6_compat.inc	24 Oct 2008 14:08:56 -0000
@@ -408,18 +408,13 @@ function _advanced_forum_build_preproces
 
   $return = array();
   // Default preprocessor prefix.
-  $prefixes[] = 'template';
+  $prefixes['template'] = 'template';
   // Add all modules so they can intervene with their own preprocessors. This allows them
   // to provide preprocess functions even if they are not the owner of the current hook.
   $prefixes += module_list();
 
   // Some modules in d5 already have functions that look like preprocess hooks.
-  // We black list those from being added.
-  $blacklist = array('search');
-
-  foreach ($blacklist as $module) {
-    unset($prefixes[array_search($module, $prefixes)]);
-  }
+  unset($prefixes['search']);
 
   foreach ($prefixes as $prefix) {
     if (function_exists($prefix .'_preprocess')) {
