includes/paths.php
changeset 617 9e4ccf67b6ea
parent 616 e311f5e6f904
child 650 e45183014778
equal deleted inserted replaced
616:e311f5e6f904 617:9e4ccf67b6ea
   953    */
   953    */
   954   
   954   
   955   function rebuild_page_index($page_id, $namespace)
   955   function rebuild_page_index($page_id, $namespace)
   956   {
   956   {
   957     global $db, $session, $paths, $template, $plugins; // Common objects
   957     global $db, $session, $paths, $template, $plugins; // Common objects
       
   958     require_once(ENANO_ROOT . '/includes/search.php');
       
   959     
   958     if(!$db->sql_query('SELECT page_text FROM '.table_prefix.'page_text
   960     if(!$db->sql_query('SELECT page_text FROM '.table_prefix.'page_text
   959       WHERE page_id=\''.$db->escape($page_id).'\' AND namespace=\''.$db->escape($namespace).'\';'))
   961       WHERE page_id=\''.$db->escape($page_id).'\' AND namespace=\''.$db->escape($namespace).'\';'))
   960     {
   962     {
   961       return $db->get_error();
   963       return $db->get_error();
   962     }
   964     }