includes/paths.php
changeset 616 e311f5e6f904
parent 613 c08670a77871
child 617 9e4ccf67b6ea
equal deleted inserted replaced
615:8eed90734867 616:e311f5e6f904
   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 )