Don't call legalSearchChars() statically so it can properly inherit
authorChad Horohoe <chadh@wikimedia.org>
Mon, 5 May 2014 20:33:22 +0000 (13:33 -0700)
committerChad Horohoe <chadh@wikimedia.org>
Mon, 5 May 2014 20:34:02 +0000 (13:34 -0700)
Change-Id: Iaabc10ce2905eefe9de8bceeec3290082ba9eb2e

includes/search/SearchMssql.php
includes/search/SearchMySQL.php
includes/search/SearchOracle.php
includes/search/SearchSqlite.php

index 3eef498..ed76ff8 100644 (file)
@@ -132,7 +132,7 @@ class SearchMssql extends SearchDatabase {
         */
        function parseQuery( $filteredText, $fulltext ) {
                global $wgContLang;
-               $lc = SearchEngine::legalSearchChars();
+               $lc = $this->legalSearchChars();
                $this->searchTerms = array();
 
                # @todo FIXME: This doesn't handle parenthetical expressions.
index 345ced5..cc20d02 100644 (file)
@@ -43,7 +43,7 @@ class SearchMySQL extends SearchDatabase {
         */
        function parseQuery( $filteredText, $fulltext ) {
                global $wgContLang;
-               $lc = SearchEngine::legalSearchChars(); // Minus format chars
+               $lc = $this->legalSearchChars(); // Minus format chars
                $searchon = '';
                $this->searchTerms = array();
 
index 93427d1..c944152 100644 (file)
@@ -171,7 +171,7 @@ class SearchOracle extends SearchDatabase {
         */
        function parseQuery( $filteredText, $fulltext ) {
                global $wgContLang;
-               $lc = SearchEngine::legalSearchChars();
+               $lc = $this->legalSearchChars();
                $this->searchTerms = array();
 
                # @todo FIXME: This doesn't handle parenthetical expressions.
index 1ac4946..6b1a6b2 100644 (file)
@@ -42,7 +42,7 @@ class SearchSqlite extends SearchDatabase {
         */
        function parseQuery( $filteredText, $fulltext ) {
                global $wgContLang;
-               $lc = SearchEngine::legalSearchChars(); // Minus format chars
+               $lc = $this->legalSearchChars(); // Minus format chars
                $searchon = '';
                $this->searchTerms = array();