X-Git-Url: http://git.cyclocoop.org/%27.parametre_url%28%20%20%20generer_action_auteur%28%27charger_plugin%27%2C%20%27update_flux%27%29%2C%27update_flux%27%2C%20%27oui%27%29.%27?a=blobdiff_plain;f=includes%2Fsearch%2FSearchEngine.php;h=4473bb2927b4d2ffbccacd9257124e40f6b3abc1;hb=54c56da85a33ce18582b7b6023f9e93181334a34;hp=9817b6cc999408e1eb2e8b91edeea0e843d03b95;hpb=0eae584888d0e4f0a40896c56c4ec92bd3200176;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/search/SearchEngine.php b/includes/search/SearchEngine.php index 9817b6cc99..4473bb2927 100644 --- a/includes/search/SearchEngine.php +++ b/includes/search/SearchEngine.php @@ -72,6 +72,21 @@ abstract class SearchEngine { return null; } + /** + * Perform a title search in the article archive. + * NOTE: these results still should be filtered by + * matching against PageArchive, permissions checks etc + * The results returned by this methods are only sugegstions and + * may not end up being shown to the user. + * + * @param string $term Raw search term + * @return Status + * @since 1.29 + */ + function searchArchiveTitle( $term ) { + return Status::newGood( [] ); + } + /** * Perform a title-only search query and return a result set. * If title searches are not supported or disabled, return null. @@ -440,8 +455,8 @@ abstract class SearchEngine { $title = Title::newFromText( $search . 'Dummy' ); if ( $title && $title->getText() == 'Dummy' && $title->getNamespace() != NS_MAIN - && !$title->isExternal() ) - { + && !$title->isExternal() + ) { $ns = [ $title->getNamespace() ]; $search = ''; } else {