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 "Align "What's this" vertically"
[lhc/web/wiklou.git]
/
includes
/
search
/
SearchOracle.php
diff --git
a/includes/search/SearchOracle.php
b/includes/search/SearchOracle.php
index
2e6cb84
..
8bcd78f
100644
(file)
--- a/
includes/search/SearchOracle.php
+++ b/
includes/search/SearchOracle.php
@@
-174,7
+174,7
@@
class SearchOracle extends SearchDatabase {
*/
function parseQuery( $filteredText, $fulltext ) {
global $wgContLang;
*/
function parseQuery( $filteredText, $fulltext ) {
global $wgContLang;
- $lc = $this->legalSearchChars();
+ $lc = $this->legalSearchChars(
self::CHARS_NO_SYNTAX
);
$this->searchTerms = [];
# @todo FIXME: This doesn't handle parenthetical expressions.
$this->searchTerms = [];
# @todo FIXME: This doesn't handle parenthetical expressions.
@@
-266,7
+266,11
@@
class SearchOracle extends SearchDatabase {
[] );
}
[] );
}
- public function legalSearchCharsForUpdate() {
- return "\"" . parent::legalSearchCharsForUpdate();
+ public static function legalSearchChars( $type = self::CHARS_ALL ) {
+ $searchChars = parent::legalSearchChars( $type );
+ if ( $type === self::CHARS_ALL ) {
+ $searchChars = "\"" . $searchChars;
+ }
+ return $searchChars;
}
}
}
}