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 "rdbms: set MYSQLI_CLIENT_FOUND_ROWS in DatabaseMysqli"
[lhc/web/wiklou.git]
/
includes
/
search
/
SearchResult.php
diff --git
a/includes/search/SearchResult.php
b/includes/search/SearchResult.php
index
1d71c87
..
b924b29
100644
(file)
--- a/
includes/search/SearchResult.php
+++ b/
includes/search/SearchResult.php
@@
-138,8
+138,8
@@
class SearchResult {
protected function initText() {
if ( !isset( $this->mText ) ) {
if ( $this->mRevision != null ) {
protected function initText() {
if ( !isset( $this->mText ) ) {
if ( $this->mRevision != null ) {
- $
this->mText = $this->searchEngine->getTextFromContent(
-
$this->mTitle, $this->mRevision->getContent() )
;
+ $
content = $this->mRevision->getContent();
+
$this->mText = $content !== null ? $content->getTextForSearchIndex() : ''
;
} else { // TODO: can we fetch raw wikitext for commons images?
$this->mText = '';
}
} else { // TODO: can we fetch raw wikitext for commons images?
$this->mText = '';
}