# HG changeset patch
# User Dan
# Date 1195676295 18000
# Node ID 956263992d483511507904d6634b1d2dfdf5ce44
# Parent 2d4bb97fa75a7f1a8a08cc9f4f4c7a2ed37eb2af
Re-add search_results hook and changed column type of search_index.word to varchar(64) in installer schema
diff -r 2d4bb97fa75a -r 956263992d48 plugins/SpecialSearch.php
--- 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 @@
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.
';
}
+ $code = $plugins->setHook('search_results');
+ foreach ( $code as $cmd )
+ {
+ eval($cmd);
+ }
}
else
{
diff -r 2d4bb97fa75a -r 956263992d48 schema.sql
--- 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`;