Re-add search_results hook and changed column type of search_index.word to varchar(64) in installer schema
authorDan
Wed, 21 Nov 2007 15:18:15 -0500
changeset 275 956263992d48
parent 274 2d4bb97fa75a
child 276 acfdccf7a2bf
Re-add search_results hook and changed column type of search_index.word to varchar(64) in installer schema
plugins/SpecialSearch.php
schema.sql
--- a/plugins/SpecialSearch.php	Wed Nov 21 15:13:06 2007 -0500
+++ b/plugins/SpecialSearch.php	Wed Nov 21 15:18:15 2007 -0500
@@ -236,6 +236,11 @@
               <li>Did your search trigger any warnings? Sometimes a search can be cancelled if there aren\'t any terms in a search query that are 4 characters or greater in length.</li>
             </ul>';
     }
+    $code = $plugins->setHook('search_results');
+    foreach ( $code as $cmd )
+    {
+      eval($cmd);
+    }
   }
   else
   {
--- a/schema.sql	Wed Nov 21 15:13:06 2007 -0500
+++ b/schema.sql	Wed Nov 21 15:18:15 2007 -0500
@@ -184,7 +184,7 @@
 ) CHARACTER SET `utf8` COLLATE `utf8_bin`;
 
 CREATE TABLE {{TABLE_PREFIX}}search_index(
-  word varbinary(64) NOT NULL,
+  word varchar(64) NOT NULL,
   page_names text,
   PRIMARY KEY ( word ) 
 ) CHARACTER SET `utf8` COLLATE `utf8_bin`;