X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fsearch%2FSearchOracle.php;h=e14de2c1a5e6f16d3d258bf68739ba8af54314d6;hb=171313e2ab337fcdfa5d366784192a96bc55d007;hp=2603161170310bbbd07a6cbf32640f05ebefd422;hpb=90892321696451fb444ce2d70b434e91b8a4fc69;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/search/SearchOracle.php b/includes/search/SearchOracle.php index 2603161170..e14de2c1a5 100644 --- a/includes/search/SearchOracle.php +++ b/includes/search/SearchOracle.php @@ -89,18 +89,6 @@ class SearchOracle extends SearchDatabase { return new MySQLSearchResultSet( $resultSet, $this->searchTerms ); } - /** - * Return a partial WHERE clause to exclude redirects, if so set - * @return String - */ - function queryRedirect() { - if ( $this->showRedirects ) { - return ''; - } else { - return 'AND page_is_redirect=0'; - } - } - /** * Return a partial WHERE clause to limit the search to the given namespaces * @return String @@ -147,7 +135,6 @@ class SearchOracle extends SearchDatabase { */ function getQuery( $filteredTerm, $fulltext ) { return $this->queryLimit( $this->queryMain( $filteredTerm, $fulltext ) . ' ' . - $this->queryRedirect() . ' ' . $this->queryNamespaces() . ' ' . $this->queryRanking( $filteredTerm, $fulltext ) . ' ' ); }