equal
deleted
inserted
replaced
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 } |