Fix NS_PROJECT_TALK (bug #7792)
[lhc/web/wiklou.git] / includes / SearchMySQL4.php
index 59f1bbe..c20e3f8 100644 (file)
@@ -23,8 +23,6 @@
  * @subpackage Search
  */
 
-require_once( 'SearchMySQL.php' );
-
 /**
  * @package MediaWiki
  * @subpackage Search
@@ -45,6 +43,7 @@ class SearchMySQL4 extends SearchMySQL {
                $this->searchTerms = array();
 
                # FIXME: This doesn't handle parenthetical expressions.
+               $m = array();
                if( preg_match_all( '/([-+<>~]?)(([' . $lc . ']+)(\*?)|"[^"]*")/',
                          $filteredText, $m, PREG_SET_ORDER ) ) {
                        foreach( $m as $terms ) {
@@ -62,7 +61,7 @@ class SearchMySQL4 extends SearchMySQL {
                                $this->searchTerms[] = $regexp;
                        }
                        wfDebug( "Would search with '$searchon'\n" );
-                       wfDebug( "Match with /\b" . implode( '\b|\b', $this->searchTerms ) . "\b/\n" );
+                       wfDebug( 'Match with /\b' . implode( '\b|\b', $this->searchTerms ) . "\b/\n" );
                } else {
                        wfDebug( "Can't understand search query '{$filteredText}'\n" );
                }