insert a clear:both div at the bottom of the content to stop floating content from...
[lhc/web/wiklou.git] / includes / SearchMySQL4.php
index 2cd3a54..271dbe1 100644 (file)
@@ -54,7 +54,7 @@ class SearchMySQL4 extends SearchMySQL {
                                        // Match the quoted term in result highlighting...
                                        $regexp = preg_quote( str_replace( '"', '', $terms[2] ), '/' );
                                }
-                               $this->searchTerms[] = $regexp;
+                               $this->searchTerms[] = "\b$regexp\b";
                        }
                        wfDebug( "Would search with '$searchon'\n" );
                        wfDebug( 'Match with /\b' . implode( '\b|\b', $this->searchTerms ) . "\b/\n" );