dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge "Add RemexHtml to the list of available Tidy drivers"
[lhc/web/wiklou.git]
/
includes
/
search
/
SearchMssql.php
diff --git
a/includes/search/SearchMssql.php
b/includes/search/SearchMssql.php
index
de701f7
..
5e8fb04
100644
(file)
--- a/
includes/search/SearchMssql.php
+++ b/
includes/search/SearchMssql.php
@@
-34,10
+34,7
@@
class SearchMssql extends SearchDatabase {
* @access public
*/
function searchText( $term ) {
* @access public
*/
function searchText( $term ) {
- $resultSet = $this->db->resultObject(
- $this->db->query( $this->getQuery( $this->filter( $term ), true ) )
- );
-
+ $resultSet = $this->db->query( $this->getQuery( $this->filter( $term ), true ) );
return new SqlSearchResultSet( $resultSet, $this->searchTerms );
}
return new SqlSearchResultSet( $resultSet, $this->searchTerms );
}
@@
-49,10
+46,7
@@
class SearchMssql extends SearchDatabase {
* @access public
*/
function searchTitle( $term ) {
* @access public
*/
function searchTitle( $term ) {
- $resultSet = $this->db->resultObject(
- $this->db->query( $this->getQuery( $this->filter( $term ), false ) )
- );
-
+ $resultSet = $this->db->query( $this->getQuery( $this->filter( $term ), false ) );
return new SqlSearchResultSet( $resultSet, $this->searchTerms );
}
return new SqlSearchResultSet( $resultSet, $this->searchTerms );
}
@@
-143,11
+137,11
@@
class SearchMssql extends SearchDatabase {
function parseQuery( $filteredText, $fulltext ) {
global $wgContLang;
$lc = $this->legalSearchChars();
function parseQuery( $filteredText, $fulltext ) {
global $wgContLang;
$lc = $this->legalSearchChars();
- $this->searchTerms =
array()
;
+ $this->searchTerms =
[]
;
# @todo FIXME: This doesn't handle parenthetical expressions.
# @todo FIXME: This doesn't handle parenthetical expressions.
- $m =
array()
;
- $q =
array()
;
+ $m =
[]
;
+ $q =
[]
;
if ( preg_match_all( '/([-+<>~]?)(([' . $lc . ']+)(\*?)|"[^"]*")/',
$filteredText, $m, PREG_SET_ORDER ) ) {
if ( preg_match_all( '/([-+<>~]?)(([' . $lc . ']+)(\*?)|"[^"]*")/',
$filteredText, $m, PREG_SET_ORDER ) ) {
@@
-166,7
+160,7
@@
class SearchMssql extends SearchDatabase {
}
}
}
}
- $searchon = $this->db->addQuotes(
join
( ',', $q ) );
+ $searchon = $this->db->addQuotes(
implode
( ',', $q ) );
$field = $this->getIndexField( $fulltext );
return "$field, $searchon";
}
$field = $this->getIndexField( $fulltext );
return "$field, $searchon";
}