diff -r dc08c70ca550 -r e2cb5f1432c8 plugins/SpecialSearch.php --- a/plugins/SpecialSearch.php Sun Dec 02 15:27:21 2007 -0500 +++ b/plugins/SpecialSearch.php Sun Dec 02 16:00:10 2007 -0500 @@ -42,7 +42,8 @@ global $db, $session, $paths, $template, $plugins; // Common objects if(!$session->get_permissions('mod_misc')) die_friendly('Unauthorized', '

You need to be an administrator to rebuild the search index

'); $template->header(); - if($paths->rebuild_search_index()) + @set_time_limit(0); + if($paths->rebuild_search_index(true)) echo '

Index rebuilt!

'; else echo '

Index was not rebuilt due to an error.'; @@ -94,7 +95,7 @@ $qin = ( isset($q) ) ? str_replace('"', '\"', htmlspecialchars($q)) : ''; $search_form = '

-   +   Advanced search ' . ( $session->auth_level > USER_LEVEL_MEMBER ? '' : '' ) . '
'; @@ -133,10 +134,10 @@ foreach ( $results as $i => $_ ) { $result =& $results[$i]; - $result['page_text'] = str_replace(array('', ''), array('', ''), $result['page_text']); + $result['page_text'] = str_replace(array('', ''), array('', ''), $result['page_text']); if ( !empty($result['page_text']) ) $result['page_text'] .= '
'; - $result['page_name'] = str_replace(array('', ''), array('', ''), $result['page_name']); + $result['page_name'] = str_replace(array('', ''), array('', ''), $result['page_name']); if ( $result['page_length'] >= 1048576 ) { $result['page_length'] = round($result['page_length'] / 1048576, 1);