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 "Revert "Use display name in category page subheadings if provided""
[lhc/web/wiklou.git]
/
includes
/
search
/
SqlSearchResultSet.php
diff --git
a/includes/search/SqlSearchResultSet.php
b/includes/search/SqlSearchResultSet.php
index
7a6aaf7
..
c3985d1
100644
(file)
--- a/
includes/search/SqlSearchResultSet.php
+++ b/
includes/search/SqlSearchResultSet.php
@@
-8,7
+8,7
@@
class SqlSearchResultSet extends SearchResultSet {
protected $terms;
protected $totalHits;
protected $terms;
protected $totalHits;
- function __construct( $resultSet, $terms, $total = null ) {
+ function __construct(
ResultWrapper
$resultSet, $terms, $total = null ) {
$this->resultSet = $resultSet;
$this->terms = $terms;
$this->totalHits = $total;
$this->resultSet = $resultSet;
$this->terms = $terms;
$this->totalHits = $total;
@@
-37,10
+37,16
@@
class SqlSearchResultSet extends SearchResultSet {
}
return SearchResult::newFromTitle(
}
return SearchResult::newFromTitle(
- Title::makeTitle( $row->page_namespace, $row->page_title )
+ Title::makeTitle( $row->page_namespace, $row->page_title )
, $this
);
}
);
}
+ function rewind() {
+ if ( $this->resultSet ) {
+ $this->resultSet->rewind();
+ }
+ }
+
function free() {
if ( $this->resultSet === false ) {
return false;
function free() {
if ( $this->resultSet === false ) {
return false;