equal
deleted
inserted
replaced
799 */ |
799 */ |
800 |
800 |
801 function rebuild_search_index($verbose = false, $debug = false) |
801 function rebuild_search_index($verbose = false, $debug = false) |
802 { |
802 { |
803 global $db, $session, $paths, $template, $plugins; // Common objects |
803 global $db, $session, $paths, $template, $plugins; // Common objects |
|
804 require_once(ENANO_ROOT . '/includes/search.php'); |
804 |
805 |
805 @set_time_limit(0); |
806 @set_time_limit(0); |
806 |
807 |
807 $q = $db->sql_query('DELETE FROM ' . table_prefix . 'search_index;'); |
808 $q = $db->sql_query('DELETE FROM ' . table_prefix . 'search_index;'); |
808 if ( !$q ) |
809 if ( !$q ) |