Browse Source

Corrected comment

tags/2020.09
Michael 1 month ago
parent
commit
2bd1e8cf65
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      src/Module/Search/Index.php

+ 2
- 2
src/Module/Search/Index.php View File

@@ -132,8 +132,8 @@ class Index extends BaseSearch
}
}

// Don't perform a fulltext or tag search on fulltext or tag
// Tags don't look like an URL and the fulltext search does only work with natual words
// Don't perform a fulltext or tag search on search results that look like an URL
// Tags don't look like an URL and the fulltext search does only work with natural words
if (parse_url($search, PHP_URL_SCHEME) && parse_url($search, PHP_URL_HOST)) {
Logger::info('Skipping tag and fulltext search since the search looks like an URL.', ['q' => $search]);
notice(DI::l10n()->t('No results.'));


Loading…
Cancel
Save