diff -r e311f5e6f904 -r 9e4ccf67b6ea includes/paths.php --- a/includes/paths.php Wed Jul 09 20:53:47 2008 -0400 +++ b/includes/paths.php Wed Jul 09 21:02:09 2008 -0400 @@ -955,6 +955,8 @@ function rebuild_page_index($page_id, $namespace) { global $db, $session, $paths, $template, $plugins; // Common objects + require_once(ENANO_ROOT . '/includes/search.php'); + if(!$db->sql_query('SELECT page_text FROM '.table_prefix.'page_text WHERE page_id=\''.$db->escape($page_id).'\' AND namespace=\''.$db->escape($namespace).'\';')) {