Fixed missing require() on search.php in rebuild_page_index()
authorDan
Wed, 09 Jul 2008 21:02:09 -0400
changeset 617 9e4ccf67b6ea
parent 616 e311f5e6f904
child 618 587b393f1e5e
Fixed missing require() on search.php in rebuild_page_index()
includes/paths.php
--- a/includes/paths.php	Wed Jul 09 20:53:47 2008 -0400
+++ b/includes/paths.php	Wed Jul 09 21:02:09 2008 -0400
@@ -955,6 +955,8 @@
   function rebuild_page_index($page_id, $namespace)
   {
     global $db, $session, $paths, $template, $plugins; // Common objects
+    require_once(ENANO_ROOT . '/includes/search.php');
+    
     if(!$db->sql_query('SELECT page_text FROM '.table_prefix.'page_text
       WHERE page_id=\''.$db->escape($page_id).'\' AND namespace=\''.$db->escape($namespace).'\';'))
     {