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
rm $wgCountTotalSearchHits. It was broken.
[lhc/web/wiklou.git]
/
includes
/
search
/
SearchResultSet.php
diff --git
a/includes/search/SearchResultSet.php
b/includes/search/SearchResultSet.php
index
f430dd0
..
698f93c
100644
(file)
--- a/
includes/search/SearchResultSet.php
+++ b/
includes/search/SearchResultSet.php
@@
-173,7
+173,12
@@
class SqlSearchResultSet extends SearchResultSet {
}
function getTotalHits() {
- return $this->totalHits;
+ if ( !is_null( $this->totalHits ) ) {
+ return $this->totalHits;
+ } else {
+ // Special:Search expects a number here.
+ return $this->numRows();
+ }
}
}