correctly.
* (bug 29567) mw.util.addPortletLink should only wrap link in <span> for
"vectorTabs" portlets.
-* (bug 8556) Incorrect session failure warning on preview-on-open
+* (bug 8556) Incorrect session failure warning on preview-on-open
namespaces (categories) when combined with $wgRawHtml.
* Use content language in formatting of dates in revertpage message
(rollback revert edit summary) and do not adjust for user timezone.
* (bug 27595) sha1 search of list=filearchive does not work
* (bug 26763) Make RSS/Atom of user contributions more visible
* (bug 25133) Allow redirects also for action=parse&pageid
+* (bug 29745) Fatal error in API search
=== Languages updated in 1.19 ===
$this->dieUsage( "{$what} search is disabled", "search-{$what}-disabled" );
}
- $result = $this->getResult();
+ $apiResult = $this->getResult();
// Add search meta data to result
if ( isset( $searchInfo['totalhits'] ) ) {
$totalhits = $matches->getTotalHits();
if ( $totalhits !== null ) {
- $result->addValue( array( 'query', 'searchinfo' ),
+ $apiResult->addValue( array( 'query', 'searchinfo' ),
'totalhits', $totalhits );
}
}
if ( isset( $searchInfo['suggestion'] ) && $matches->hasSuggestion() ) {
- $result->addValue( array( 'query', 'searchinfo' ),
+ $apiResult->addValue( array( 'query', 'searchinfo' ),
'suggestion', $matches->getSuggestionQuery() );
}
$titles = array();
$count = 0;
$result = $matches->next();
+
while ( $result ) {
if ( ++ $count > $limit ) {
// We've reached the one extra which shows that there are additional items to be had. Stop here...
}
// Add item to results and see whether it fits
- $fit = $result->addValue( array( 'query', $this->getModuleName() ),
+ $fit = $apiResult->addValue( array( 'query', $this->getModuleName() ),
null, $vals );
if ( !$fit ) {
$this->setContinueEnumParameter( 'offset', $params['offset'] + $count - 1 );
}
if ( is_null( $resultPageSet ) ) {
- $result->setIndexedTagName_internal( array(
+ $apiResult->setIndexedTagName_internal( array(
'query', $this->getModuleName()
), 'p' );
} else {